public static ReleasedProductVariant CreateReleasedProductVariant(string dataAreaId,
                                                                          string productMasterNumber,
                                                                          string productConfigurationId,
                                                                          string productSizeId,
                                                                          string productColorId,
                                                                          string productStyleId,
                                                                          global::Microsoft.Dynamics.DataEntities.ReleasedProductMaster releasedProductMaster,
                                                                          global::Microsoft.Dynamics.DataEntities.ReleasedProductMasterV2 releasedProductMasterV2,
                                                                          global::Microsoft.Dynamics.DataEntities.ProductMaster productMaster,
                                                                          global::Microsoft.Dynamics.DataEntities.ProductVariant productVariant)
        {
            ReleasedProductVariant releasedProductVariant = new ReleasedProductVariant();

            releasedProductVariant.dataAreaId             = dataAreaId;
            releasedProductVariant.ProductMasterNumber    = productMasterNumber;
            releasedProductVariant.ProductConfigurationId = productConfigurationId;
            releasedProductVariant.ProductSizeId          = productSizeId;
            releasedProductVariant.ProductColorId         = productColorId;
            releasedProductVariant.ProductStyleId         = productStyleId;
            if ((releasedProductMaster == null))
            {
                throw new global::System.ArgumentNullException("releasedProductMaster");
            }
            releasedProductVariant.ReleasedProductMaster = releasedProductMaster;
            if ((releasedProductMasterV2 == null))
            {
                throw new global::System.ArgumentNullException("releasedProductMasterV2");
            }
            releasedProductVariant.ReleasedProductMasterV2 = releasedProductMasterV2;
            if ((productMaster == null))
            {
                throw new global::System.ArgumentNullException("productMaster");
            }
            releasedProductVariant.ProductMaster = productMaster;
            if ((productVariant == null))
            {
                throw new global::System.ArgumentNullException("productVariant");
            }
            releasedProductVariant.ProductVariant = productVariant;
            return(releasedProductVariant);
        }
 partial void OnReleasedProductMasterChanging(global::Microsoft.Dynamics.DataEntities.ReleasedProductMaster value);