public static ProductMasterVersion CreateProductMasterVersion(string productMasterNumber,
                                                                      string productVersionId,
                                                                      decimal displaySequenceNumber,
                                                                      int replenishmentWeight,
                                                                      global::Microsoft.Dynamics.DataEntities.ProductVersion productVersion,
                                                                      global::Microsoft.Dynamics.DataEntities.ProductMaster productMaster)
        {
            ProductMasterVersion productMasterVersion = new ProductMasterVersion();

            productMasterVersion.ProductMasterNumber   = productMasterNumber;
            productMasterVersion.ProductVersionId      = productVersionId;
            productMasterVersion.DisplaySequenceNumber = displaySequenceNumber;
            productMasterVersion.ReplenishmentWeight   = replenishmentWeight;
            if ((productVersion == null))
            {
                throw new global::System.ArgumentNullException("productVersion");
            }
            productMasterVersion.ProductVersion = productVersion;
            if ((productMaster == null))
            {
                throw new global::System.ArgumentNullException("productMaster");
            }
            productMasterVersion.ProductMaster = productMaster;
            return(productMasterVersion);
        }
 partial void OnProductVersionChanging(global::Microsoft.Dynamics.DataEntities.ProductVersion value);