/// <summary>
 /// Initializes a new instance of the
 /// MicrosoftDynamicsCRMdynamicpropertyinstance class.
 /// </summary>
 /// <param name="versionnumber">Shows the version number of the
 /// property instance.</param>
 /// <param name="modifiedon">Shows the date and time when the record
 /// was last updated.</param>
 /// <param name="valuedouble">Shows the double value of the
 /// property.</param>
 /// <param name="valuedecimal">Shows the decimal value of the
 /// property.</param>
 /// <param name="_modifiedonbehalfbyValue">Shows who created the record
 /// on behalf of another user.</param>
 /// <param name="valuestring">Shows the string value of the
 /// property.</param>
 /// <param name="_createdonbehalfbyValue">Shows who created the record
 /// on behalf of another user.</param>
 /// <param name="dmtimportstate">Internal Use Only</param>
 /// <param name="_modifiedbyValue">Shows who last updated the
 /// record.</param>
 /// <param name="_createdbyValue">Shows who created the record.</param>
 /// <param name="validationstatus">Shows whether the property value is
 /// valid.</param>
 /// <param name="_dynamicpropertyidValue">Shows the property that this
 /// record is associated with.</param>
 /// <param name="_transactioncurrencyidValue">Shows the currency
 /// associated with the record.</param>
 /// <param name="createdon">Shows the date and time when the record was
 /// created.</param>
 /// <param name="_regardingobjectidValue">Shows the object that the
 /// property is associated with.</param>
 /// <param name="_owningbusinessunitValue">Shows the business unit that
 /// the record owner belongs to.</param>
 /// <param name="_owneridValue">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.</param>
 /// <param name="_owninguserValue">Shows the user who owns the property
 /// instance.</param>
 /// <param name="exchangerate">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.</param>
 /// <param name="valueinteger">Shows the integer value of the
 /// property.</param>
 /// <param name="dynamicpropertyinstanceid">Shows the unique identifier
 /// of the property instance.</param>
 /// <param name="_owningteamValue">Shows the team who owns the property
 /// instance.</param>
 public MicrosoftDynamicsCRMdynamicpropertyinstance(string versionnumber = default(string), System.DateTimeOffset?modifiedon = default(System.DateTimeOffset?), decimal?valuedouble = default(decimal?), decimal?valuedecimal = default(decimal?), string _modifiedonbehalfbyValue = default(string), string valuestring = default(string), string _createdonbehalfbyValue = default(string), int?dmtimportstate = default(int?), string _modifiedbyValue = default(string), string _createdbyValue = default(string), bool?validationstatus = default(bool?), string _dynamicpropertyidValue = default(string), string _transactioncurrencyidValue = default(string), System.DateTimeOffset?createdon = default(System.DateTimeOffset?), string _regardingobjectidValue = default(string), string _owningbusinessunitValue = default(string), string _owneridValue = default(string), string _owninguserValue = default(string), decimal?exchangerate = default(decimal?), int?valueinteger = default(int?), string dynamicpropertyinstanceid = default(string), string _owningteamValue = default(string), MicrosoftDynamicsCRMsystemuser createdby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMdynamicproperty dynamicpropertyid = default(MicrosoftDynamicsCRMdynamicproperty), MicrosoftDynamicsCRMquotedetail regardingobjectidQuotedetail = default(MicrosoftDynamicsCRMquotedetail), MicrosoftDynamicsCRMsystemuser modifiedby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMbusinessunit owningbusinessunit = default(MicrosoftDynamicsCRMbusinessunit), MicrosoftDynamicsCRMinvoicedetail regardingobjectidInvoicedetail = default(MicrosoftDynamicsCRMinvoicedetail), MicrosoftDynamicsCRMprincipal ownerid = default(MicrosoftDynamicsCRMprincipal), MicrosoftDynamicsCRMteam owningteam = default(MicrosoftDynamicsCRMteam), MicrosoftDynamicsCRMopportunityproduct regardingobjectidOpportunityproduct = default(MicrosoftDynamicsCRMopportunityproduct), MicrosoftDynamicsCRMsystemuser createdonbehalfby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsalesorderdetail regardingobjectidSalesorderdetail = default(MicrosoftDynamicsCRMsalesorderdetail), MicrosoftDynamicsCRMsystemuser owninguser = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMtransactioncurrency transactioncurrencyid = default(MicrosoftDynamicsCRMtransactioncurrency), MicrosoftDynamicsCRMsystemuser modifiedonbehalfby = default(MicrosoftDynamicsCRMsystemuser))
 {
     Versionnumber = versionnumber;
     Modifiedon    = modifiedon;
     Valuedouble   = valuedouble;
     Valuedecimal  = valuedecimal;
     this._modifiedonbehalfbyValue = _modifiedonbehalfbyValue;
     Valuestring = valuestring;
     this._createdonbehalfbyValue = _createdonbehalfbyValue;
     Dmtimportstate                   = dmtimportstate;
     this._modifiedbyValue            = _modifiedbyValue;
     this._createdbyValue             = _createdbyValue;
     Validationstatus                 = validationstatus;
     this._dynamicpropertyidValue     = _dynamicpropertyidValue;
     this._transactioncurrencyidValue = _transactioncurrencyidValue;
     Createdon = createdon;
     this._regardingobjectidValue  = _regardingobjectidValue;
     this._owningbusinessunitValue = _owningbusinessunitValue;
     this._owneridValue            = _owneridValue;
     this._owninguserValue         = _owninguserValue;
     Exchangerate = exchangerate;
     Valueinteger = valueinteger;
     Dynamicpropertyinstanceid = dynamicpropertyinstanceid;
     this._owningteamValue     = _owningteamValue;
     Createdby                      = createdby;
     Dynamicpropertyid              = dynamicpropertyid;
     RegardingobjectidQuotedetail   = regardingobjectidQuotedetail;
     Modifiedby                     = modifiedby;
     Owningbusinessunit             = owningbusinessunit;
     RegardingobjectidInvoicedetail = regardingobjectidInvoicedetail;
     Ownerid    = ownerid;
     Owningteam = owningteam;
     RegardingobjectidOpportunityproduct = regardingobjectidOpportunityproduct;
     Createdonbehalfby = createdonbehalfby;
     RegardingobjectidSalesorderdetail = regardingobjectidSalesorderdetail;
     Owninguser            = owninguser;
     Transactioncurrencyid = transactioncurrencyid;
     Modifiedonbehalfby    = modifiedonbehalfby;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the
 /// MicrosoftDynamicsCRMopportunityproduct class.
 /// </summary>
 /// <param name="_modifiedbyValue">Shows who last updated the
 /// record.</param>
 /// <param name="isproductoverridden">For system use only.</param>
 /// <param name="priceperunit">Shows the price per unit of the
 /// opportunity product, based on the price list specified on the
 /// parent opportunity.</param>
 /// <param name="_createdonbehalfbyValue">Shows who created the record
 /// on behalf of another user.</param>
 /// <param name="taxBase">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.</param>
 /// <param name="quantity">Type the amount or quantity of the product
 /// the customer would like to purchase.</param>
 /// <param name="productdescription">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.</param>
 /// <param name="ispriceoverridden">Select whether the pricing on the
 /// opportunity product reflects an override of the product catalog
 /// pricing.</param>
 /// <param name="description">Type additional information to describe
 /// the opportunity product, such as manufacturing details.</param>
 /// <param name="_transactioncurrencyidValue">Choose the local currency
 /// for the record to make sure budgets are reported in the correct
 /// currency.</param>
 /// <param name="baseamountBase">Shows the Amount field converted to
 /// the system's default base currency. The calculation uses the
 /// exchange rate specified in the Currencies area.</param>
 /// <param name="lineitemnumber">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.</param>
 /// <param name="manualdiscountamount">Type the manual discount amount
 /// for the opportunity product to deduct any negotiated or other
 /// savings from the product total.</param>
 /// <param name="extendedamount">Shows the total amount due for the
 /// opportunity product, calculated on the Amount value minus the
 /// Manual Discount amount.</param>
 /// <param name="priceperunitBase">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.</param>
 /// <param name="producttypecode">Product Type</param>
 /// <param name="opportunitystatecode">Select the status of the
 /// opportunity product.</param>
 /// <param name="createdon">Shows the date and time when the record was
 /// created. The date and time are displayed in the time zone selected
 /// in Microsoft Dynamics 365 options.</param>
 /// <param name="parentbundleid">Choose the parent bundle associated
 /// with this product</param>
 /// <param name="pricingerrorcode">Select the pricing error for the
 /// opportunity product.</param>
 /// <param name="volumediscountamount">Shows the discount amount per
 /// unit if a specified volume is purchased. Configure volume discounts
 /// in the Product Catalog in the Settings area.</param>
 /// <param name="baseamount">Shows the total price of the opportunity
 /// product, based on the price per unit, volume discount, and
 /// quantity.</param>
 /// <param name="overriddencreatedon">Date and time that the record was
 /// migrated.</param>
 /// <param name="opportunityproductid">Unique identifier of the
 /// opportunity product.</param>
 /// <param name="_uomidValue">Choose the unit of measurement for the
 /// base unit quantity for this purchase, such as each or
 /// dozen.</param>
 /// <param name="entityimage">The default image for the entity.</param>
 /// <param name="owninguser">Unique identifier of the user who owns the
 /// opportunity product.</param>
 /// <param name="_opportunityidValue">Unique identifier of the
 /// opportunity with which the opportunity product is
 /// associated.</param>
 /// <param name="manualdiscountamountBase">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.</param>
 /// <param name="modifiedon">Shows the date and time when the record
 /// was last updated. The date and time are displayed in the time zone
 /// selected in Microsoft Dynamics 365 options.</param>
 /// <param name="versionnumber">Version number of the opportunity
 /// product.</param>
 /// <param name="entityimageid">For internal use only.</param>
 /// <param name="_productidValue">Choose the product to include on the
 /// opportunity to link the product's pricing and other information to
 /// the opportunity.</param>
 /// <param name="timezoneruleversionnumber">For internal use
 /// only.</param>
 /// <param name="importsequencenumber">Unique identifier of the data
 /// import or data migration that created this record.</param>
 /// <param name="productassociationid">Unique identifier of the product
 /// line item association with bundle in the opportunity</param>
 /// <param name="owningbusinessunit">Unique identifier of the business
 /// unit that owns the opportunity product.</param>
 /// <param name="_modifiedonbehalfbyValue">Unique identifier of the
 /// delegate user who last modified the opportunityproduct.</param>
 /// <param name="propertyconfigurationstatus">Status of the property
 /// configuration.</param>
 /// <param name="tax">Type the tax amount to be applied on the
 /// opportunity product.</param>
 /// <param name="volumediscountamountBase">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.</param>
 /// <param name="extendedamountBase">Shows the Extended Amount field
 /// converted to the system's default base currency. The calculation
 /// uses the exchange rate specified in the Currencies area.</param>
 /// <param name="exchangerate">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.</param>
 /// <param name="utcconversiontimezonecode">Time zone code that was in
 /// use when the record was created.</param>
 /// <param name="_owneridValue">Unique identifier of the user or team
 /// who owns the opportunity product.</param>
 /// <param name="sequencenumber">Shows the ID of the data that
 /// maintains the sequence.</param>
 /// <param name="_createdbyValue">Shows who created the record.</param>
 public MicrosoftDynamicsCRMopportunityproduct(string _modifiedbyValue = default(string), bool?isproductoverridden = default(bool?), decimal?priceperunit = default(decimal?), string _createdonbehalfbyValue = default(string), decimal?taxBase = default(decimal?), decimal?quantity = default(decimal?), string productdescription = default(string), bool?ispriceoverridden = default(bool?), string description = default(string), string _transactioncurrencyidValue = default(string), decimal?baseamountBase = default(decimal?), int?lineitemnumber = default(int?), decimal?manualdiscountamount = default(decimal?), decimal?extendedamount = default(decimal?), decimal?priceperunitBase = default(decimal?), int?producttypecode = default(int?), int?opportunitystatecode = default(int?), System.DateTimeOffset?createdon = default(System.DateTimeOffset?), string parentbundleid = default(string), int?pricingerrorcode = default(int?), decimal?volumediscountamount = default(decimal?), decimal?baseamount = default(decimal?), System.DateTimeOffset?overriddencreatedon = default(System.DateTimeOffset?), string opportunityproductid = default(string), string _uomidValue = default(string), string entityimageUrl = default(string), byte[] entityimage = default(byte[]), string owninguser = default(string), string _opportunityidValue = default(string), decimal?manualdiscountamountBase = default(decimal?), System.DateTimeOffset?modifiedon = default(System.DateTimeOffset?), string versionnumber = default(string), string entityimageid = default(string), string _productidValue = default(string), int?timezoneruleversionnumber = default(int?), int?importsequencenumber = default(int?), string productassociationid = default(string), string owningbusinessunit = default(string), long?entityimageTimestamp = default(long?), string _modifiedonbehalfbyValue = default(string), int?propertyconfigurationstatus = default(int?), decimal?tax = default(decimal?), decimal?volumediscountamountBase = default(decimal?), decimal?extendedamountBase = default(decimal?), decimal?exchangerate = default(decimal?), int?utcconversiontimezonecode = default(int?), string _owneridValue = default(string), int?sequencenumber = default(int?), string _createdbyValue = default(string), MicrosoftDynamicsCRMproduct productid = default(MicrosoftDynamicsCRMproduct), MicrosoftDynamicsCRMtransactioncurrency transactioncurrencyid = default(MicrosoftDynamicsCRMtransactioncurrency), MicrosoftDynamicsCRMsystemuser createdby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMopportunity opportunityid = default(MicrosoftDynamicsCRMopportunity), IList <MicrosoftDynamicsCRMasyncoperation> opportunityProductAsyncOperations = default(IList <MicrosoftDynamicsCRMasyncoperation>), MicrosoftDynamicsCRMsystemuser modifiedby = default(MicrosoftDynamicsCRMsystemuser), IList <MicrosoftDynamicsCRMdynamicpropertyinstance> opportunityProductDynamicpropertyinstance = default(IList <MicrosoftDynamicsCRMdynamicpropertyinstance>), IList <MicrosoftDynamicsCRMsyncerror> opportunityProductSyncErrors = default(IList <MicrosoftDynamicsCRMsyncerror>), MicrosoftDynamicsCRMproductassociation productassociationidProductassociation = default(MicrosoftDynamicsCRMproductassociation), MicrosoftDynamicsCRMsystemuser modifiedonbehalfby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMuom uomid = default(MicrosoftDynamicsCRMuom), MicrosoftDynamicsCRMsystemuser createdonbehalfby = default(MicrosoftDynamicsCRMsystemuser), IList <MicrosoftDynamicsCRMbulkdeletefailure> opportunityProductBulkDeleteFailures = default(IList <MicrosoftDynamicsCRMbulkdeletefailure>), MicrosoftDynamicsCRMopportunityproduct parentbundleidOpportunityproduct = default(MicrosoftDynamicsCRMopportunityproduct), IList <MicrosoftDynamicsCRMopportunityproduct> opportunityproductParentOpportunityproduct = default(IList <MicrosoftDynamicsCRMopportunityproduct>))
 {
     this._modifiedbyValue        = _modifiedbyValue;
     Isproductoverridden          = isproductoverridden;
     Priceperunit                 = priceperunit;
     this._createdonbehalfbyValue = _createdonbehalfbyValue;
     TaxBase            = taxBase;
     Quantity           = quantity;
     Productdescription = productdescription;
     Ispriceoverridden  = ispriceoverridden;
     Description        = description;
     this._transactioncurrencyidValue = _transactioncurrencyidValue;
     BaseamountBase                = baseamountBase;
     Lineitemnumber                = lineitemnumber;
     Manualdiscountamount          = manualdiscountamount;
     Extendedamount                = extendedamount;
     PriceperunitBase              = priceperunitBase;
     Producttypecode               = producttypecode;
     Opportunitystatecode          = opportunitystatecode;
     Createdon                     = createdon;
     Parentbundleid                = parentbundleid;
     Pricingerrorcode              = pricingerrorcode;
     Volumediscountamount          = volumediscountamount;
     Baseamount                    = baseamount;
     Overriddencreatedon           = overriddencreatedon;
     Opportunityproductid          = opportunityproductid;
     this._uomidValue              = _uomidValue;
     EntityimageUrl                = entityimageUrl;
     Entityimage                   = entityimage;
     Owninguser                    = owninguser;
     this._opportunityidValue      = _opportunityidValue;
     ManualdiscountamountBase      = manualdiscountamountBase;
     Modifiedon                    = modifiedon;
     Versionnumber                 = versionnumber;
     Entityimageid                 = entityimageid;
     this._productidValue          = _productidValue;
     Timezoneruleversionnumber     = timezoneruleversionnumber;
     Importsequencenumber          = importsequencenumber;
     Productassociationid          = productassociationid;
     Owningbusinessunit            = owningbusinessunit;
     EntityimageTimestamp          = entityimageTimestamp;
     this._modifiedonbehalfbyValue = _modifiedonbehalfbyValue;
     Propertyconfigurationstatus   = propertyconfigurationstatus;
     Tax = tax;
     VolumediscountamountBase  = volumediscountamountBase;
     ExtendedamountBase        = extendedamountBase;
     Exchangerate              = exchangerate;
     Utcconversiontimezonecode = utcconversiontimezonecode;
     this._owneridValue        = _owneridValue;
     Sequencenumber            = sequencenumber;
     this._createdbyValue      = _createdbyValue;
     Productid                                 = productid;
     Transactioncurrencyid                     = transactioncurrencyid;
     Createdby                                 = createdby;
     Opportunityid                             = opportunityid;
     OpportunityProductAsyncOperations         = opportunityProductAsyncOperations;
     Modifiedby                                = modifiedby;
     OpportunityProductDynamicpropertyinstance = opportunityProductDynamicpropertyinstance;
     OpportunityProductSyncErrors              = opportunityProductSyncErrors;
     ProductassociationidProductassociation    = productassociationidProductassociation;
     Modifiedonbehalfby                        = modifiedonbehalfby;
     Uomid             = uomid;
     Createdonbehalfby = createdonbehalfby;
     OpportunityProductBulkDeleteFailures       = opportunityProductBulkDeleteFailures;
     ParentbundleidOpportunityproduct           = parentbundleidOpportunityproduct;
     OpportunityproductParentOpportunityproduct = opportunityproductParentOpportunityproduct;
     CustomInit();
 }