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 OnProductStyleGroupChanging(global::Microsoft.Dynamics.DataEntities.ProductStyleGroup value);