public static ProductMasterStyle CreateProductMasterStyle(string productMasterNumber,
                                                                  string productStyleId,
                                                                  decimal displaySequenceNumber,
                                                                  int replenishmentWeight,
                                                                  global::Microsoft.Dynamics.DataEntities.ProductStyle productStyle,
                                                                  global::Microsoft.Dynamics.DataEntities.ProductMaster productMaster)
        {
            ProductMasterStyle productMasterStyle = new ProductMasterStyle();

            productMasterStyle.ProductMasterNumber   = productMasterNumber;
            productMasterStyle.ProductStyleId        = productStyleId;
            productMasterStyle.DisplaySequenceNumber = displaySequenceNumber;
            productMasterStyle.ReplenishmentWeight   = replenishmentWeight;
            if ((productStyle == null))
            {
                throw new global::System.ArgumentNullException("productStyle");
            }
            productMasterStyle.ProductStyle = productStyle;
            if ((productMaster == null))
            {
                throw new global::System.ArgumentNullException("productMaster");
            }
            productMasterStyle.ProductMaster = productMaster;
            return(productMasterStyle);
        }
        public static ProductStyleGroupLine CreateProductStyleGroupLine(string productStyleGroupId,
                                                                        string productStyleId,
                                                                        decimal displayOrder,
                                                                        int replenishmentWeight,
                                                                        global::Microsoft.Dynamics.DataEntities.ProductStyle productStyle,
                                                                        global::Microsoft.Dynamics.DataEntities.ProductStyleGroup productStyleGroup)
        {
            ProductStyleGroupLine productStyleGroupLine = new ProductStyleGroupLine();

            productStyleGroupLine.ProductStyleGroupId = productStyleGroupId;
            productStyleGroupLine.ProductStyleId      = productStyleId;
            productStyleGroupLine.DisplayOrder        = displayOrder;
            productStyleGroupLine.ReplenishmentWeight = replenishmentWeight;
            if ((productStyle == null))
            {
                throw new global::System.ArgumentNullException("productStyle");
            }
            productStyleGroupLine.ProductStyle = productStyle;
            if ((productStyleGroup == null))
            {
                throw new global::System.ArgumentNullException("productStyleGroup");
            }
            productStyleGroupLine.ProductStyleGroup = productStyleGroup;
            return(productStyleGroupLine);
        }
 partial void OnProductStyleChanging(global::Microsoft.Dynamics.DataEntities.ProductStyle value);