public static ProductNumberIdentifiedReleasedProductVariantExternalCode CreateProductNumberIdentifiedReleasedProductVariantExternalCode(string dataAreaId, string releasedProductVariantExternalCodeClassId, string productVariantNumber, global::Microsoft.Dynamics.DataEntities.ProductNumberIdentifiedReleasedProductVariant productNumberIdentifiedReleasedProductVariant)
        {
            ProductNumberIdentifiedReleasedProductVariantExternalCode productNumberIdentifiedReleasedProductVariantExternalCode = new ProductNumberIdentifiedReleasedProductVariantExternalCode();

            productNumberIdentifiedReleasedProductVariantExternalCode.dataAreaId = dataAreaId;
            productNumberIdentifiedReleasedProductVariantExternalCode.ReleasedProductVariantExternalCodeClassId = releasedProductVariantExternalCodeClassId;
            productNumberIdentifiedReleasedProductVariantExternalCode.ProductVariantNumber = productVariantNumber;
            if ((productNumberIdentifiedReleasedProductVariant == null))
            {
                throw new global::System.ArgumentNullException("productNumberIdentifiedReleasedProductVariant");
            }
            productNumberIdentifiedReleasedProductVariantExternalCode.ProductNumberIdentifiedReleasedProductVariant = productNumberIdentifiedReleasedProductVariant;
            return(productNumberIdentifiedReleasedProductVariantExternalCode);
        }
 partial void OnProductNumberIdentifiedReleasedProductVariantChanging(global::Microsoft.Dynamics.DataEntities.ProductNumberIdentifiedReleasedProductVariant value);