public static ProductMasterVersion CreateProductMasterVersion(string productMasterNumber, string productVersionId, decimal displaySequenceNumber, int replenishmentWeight, global::Microsoft.Dynamics.DataEntities.ProductVersion productVersion, global::Microsoft.Dynamics.DataEntities.ProductMaster productMaster) { ProductMasterVersion productMasterVersion = new ProductMasterVersion(); productMasterVersion.ProductMasterNumber = productMasterNumber; productMasterVersion.ProductVersionId = productVersionId; productMasterVersion.DisplaySequenceNumber = displaySequenceNumber; productMasterVersion.ReplenishmentWeight = replenishmentWeight; if ((productVersion == null)) { throw new global::System.ArgumentNullException("productVersion"); } productMasterVersion.ProductVersion = productVersion; if ((productMaster == null)) { throw new global::System.ArgumentNullException("productMaster"); } productMasterVersion.ProductMaster = productMaster; return(productMasterVersion); }
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 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 ReleasedProductVariantV2 CreateReleasedProductVariantV2(string dataAreaId, string productMasterNumber, string productConfigurationId, string productSizeId, string productColorId, string productStyleId, string productVersionId, global::Microsoft.Dynamics.DataEntities.ReleasedProductMaster releasedProductMaster, global::Microsoft.Dynamics.DataEntities.ReleasedProductMasterV2 releasedProductMasterV2, global::Microsoft.Dynamics.DataEntities.ProductMaster productMaster, global::Microsoft.Dynamics.DataEntities.ProductVariantV2 productVariantV2) { ReleasedProductVariantV2 releasedProductVariantV2 = new ReleasedProductVariantV2(); releasedProductVariantV2.dataAreaId = dataAreaId; releasedProductVariantV2.ProductMasterNumber = productMasterNumber; releasedProductVariantV2.ProductConfigurationId = productConfigurationId; releasedProductVariantV2.ProductSizeId = productSizeId; releasedProductVariantV2.ProductColorId = productColorId; releasedProductVariantV2.ProductStyleId = productStyleId; releasedProductVariantV2.ProductVersionId = productVersionId; if ((releasedProductMaster == null)) { throw new global::System.ArgumentNullException("releasedProductMaster"); } releasedProductVariantV2.ReleasedProductMaster = releasedProductMaster; if ((releasedProductMasterV2 == null)) { throw new global::System.ArgumentNullException("releasedProductMasterV2"); } releasedProductVariantV2.ReleasedProductMasterV2 = releasedProductMasterV2; if ((productMaster == null)) { throw new global::System.ArgumentNullException("productMaster"); } releasedProductVariantV2.ProductMaster = productMaster; if ((productVariantV2 == null)) { throw new global::System.ArgumentNullException("productVariantV2"); } releasedProductVariantV2.ProductVariantV2 = productVariantV2; return(releasedProductVariantV2); }
public static ProductVariant CreateProductVariant(string productMasterNumber, string productConfigurationId, string productSizeId, string productColorId, string productStyleId, global::Microsoft.Dynamics.DataEntities.ProductMaster productMaster) { ProductVariant productVariant = new ProductVariant(); productVariant.ProductMasterNumber = productMasterNumber; productVariant.ProductConfigurationId = productConfigurationId; productVariant.ProductSizeId = productSizeId; productVariant.ProductColorId = productColorId; productVariant.ProductStyleId = productStyleId; if ((productMaster == null)) { throw new global::System.ArgumentNullException("productMaster"); } productVariant.ProductMaster = productMaster; return(productVariant); }
partial void OnProductMasterChanging(global::Microsoft.Dynamics.DataEntities.ProductMaster value);
public static ProductNumberIdentifiedReleasedProductVariant CreateProductNumberIdentifiedReleasedProductVariant(string dataAreaId, string productVariantNumber, global::Microsoft.Dynamics.DataEntities.ReleasedProductMasterV2 releasedProductMaster, global::Microsoft.Dynamics.DataEntities.ProductMaster productMaster, global::Microsoft.Dynamics.DataEntities.ProductNumberIdentifiedProductVariant productVariant) { ProductNumberIdentifiedReleasedProductVariant productNumberIdentifiedReleasedProductVariant = new ProductNumberIdentifiedReleasedProductVariant(); productNumberIdentifiedReleasedProductVariant.dataAreaId = dataAreaId; productNumberIdentifiedReleasedProductVariant.ProductVariantNumber = productVariantNumber; if ((releasedProductMaster == null)) { throw new global::System.ArgumentNullException("releasedProductMaster"); } productNumberIdentifiedReleasedProductVariant.ReleasedProductMaster = releasedProductMaster; if ((productMaster == null)) { throw new global::System.ArgumentNullException("productMaster"); } productNumberIdentifiedReleasedProductVariant.ProductMaster = productMaster; if ((productVariant == null)) { throw new global::System.ArgumentNullException("productVariant"); } productNumberIdentifiedReleasedProductVariant.ProductVariant = productVariant; return(productNumberIdentifiedReleasedProductVariant); }
public static ProductNumberIdentifiedProductVariant CreateProductNumberIdentifiedProductVariant(string productVariantNumber, global::Microsoft.Dynamics.DataEntities.ProductMaster productMaster) { ProductNumberIdentifiedProductVariant productNumberIdentifiedProductVariant = new ProductNumberIdentifiedProductVariant(); productNumberIdentifiedProductVariant.ProductVariantNumber = productVariantNumber; if ((productMaster == null)) { throw new global::System.ArgumentNullException("productMaster"); } productNumberIdentifiedProductVariant.ProductMaster = productMaster; return(productNumberIdentifiedProductVariant); }