public static ProductSizeGroupLine CreateProductSizeGroupLine(string productSizeGroupId, string productSizeId, decimal displayOrder, int replenishmentWeight, global::Microsoft.Dynamics.DataEntities.ProductSize productSize, global::Microsoft.Dynamics.DataEntities.ProductSizeGroup productSizeGroup) { ProductSizeGroupLine productSizeGroupLine = new ProductSizeGroupLine(); productSizeGroupLine.ProductSizeGroupId = productSizeGroupId; productSizeGroupLine.ProductSizeId = productSizeId; productSizeGroupLine.DisplayOrder = displayOrder; productSizeGroupLine.ReplenishmentWeight = replenishmentWeight; if ((productSize == null)) { throw new global::System.ArgumentNullException("productSize"); } productSizeGroupLine.ProductSize = productSize; if ((productSizeGroup == null)) { throw new global::System.ArgumentNullException("productSizeGroup"); } productSizeGroupLine.ProductSizeGroup = productSizeGroup; return(productSizeGroupLine); }
public static ProductMasterSize CreateProductMasterSize(string productMasterNumber, string productSizeId, decimal displaySequenceNumber, int replenishmentWeight, global::Microsoft.Dynamics.DataEntities.ProductMaster productMaster, global::Microsoft.Dynamics.DataEntities.ProductSize productSize) { ProductMasterSize productMasterSize = new ProductMasterSize(); productMasterSize.ProductMasterNumber = productMasterNumber; productMasterSize.ProductSizeId = productSizeId; productMasterSize.DisplaySequenceNumber = displaySequenceNumber; productMasterSize.ReplenishmentWeight = replenishmentWeight; if ((productMaster == null)) { throw new global::System.ArgumentNullException("productMaster"); } productMasterSize.ProductMaster = productMaster; if ((productSize == null)) { throw new global::System.ArgumentNullException("productSize"); } productMasterSize.ProductSize = productSize; return(productMasterSize); }
partial void OnProductSizeChanging(global::Microsoft.Dynamics.DataEntities.ProductSize value);