public static ProductColorGroupLine CreateProductColorGroupLine(string productColorGroupId,
                                                                        string productColorId,
                                                                        decimal displayOrder,
                                                                        int replenishmentWeight,
                                                                        global::Microsoft.Dynamics.DataEntities.ProductColor productColor,
                                                                        global::Microsoft.Dynamics.DataEntities.ProductColorGroup productColorGroup)
        {
            ProductColorGroupLine productColorGroupLine = new ProductColorGroupLine();

            productColorGroupLine.ProductColorGroupId = productColorGroupId;
            productColorGroupLine.ProductColorId      = productColorId;
            productColorGroupLine.DisplayOrder        = displayOrder;
            productColorGroupLine.ReplenishmentWeight = replenishmentWeight;
            if ((productColor == null))
            {
                throw new global::System.ArgumentNullException("productColor");
            }
            productColorGroupLine.ProductColor = productColor;
            if ((productColorGroup == null))
            {
                throw new global::System.ArgumentNullException("productColorGroup");
            }
            productColorGroupLine.ProductColorGroup = productColorGroup;
            return(productColorGroupLine);
        }
 partial void OnProductColorGroupChanging(global::Microsoft.Dynamics.DataEntities.ProductColorGroup value);