public static ProductMasterColor CreateProductMasterColor(string productMasterNumber, string productColorId, decimal displaySequenceNumber, int replenishmentWeight, global::Microsoft.Dynamics.DataEntities.ProductColor productColor, global::Microsoft.Dynamics.DataEntities.ProductMaster productMaster) { ProductMasterColor productMasterColor = new ProductMasterColor(); productMasterColor.ProductMasterNumber = productMasterNumber; productMasterColor.ProductColorId = productColorId; productMasterColor.DisplaySequenceNumber = displaySequenceNumber; productMasterColor.ReplenishmentWeight = replenishmentWeight; if ((productColor == null)) { throw new global::System.ArgumentNullException("productColor"); } productMasterColor.ProductColor = productColor; if ((productMaster == null)) { throw new global::System.ArgumentNullException("productMaster"); } productMasterColor.ProductMaster = productMaster; return(productMasterColor); }
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 OnProductColorChanging(global::Microsoft.Dynamics.DataEntities.ProductColor value);