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); }
partial void OnProductVariantV2Changing(global::Microsoft.Dynamics.DataEntities.ProductVariantV2 value);