public static KittingKitVersion CreateKittingKitVersion(string dataAreaId,
                                                                string kitItemNumber,
                                                                string kitId,
                                                                string productionSiteId,
                                                                string productConfigurationId,
                                                                string productColorId,
                                                                string productSizeId,
                                                                string productStyleId,
                                                                global::System.DateTimeOffset validFromDate,
                                                                global::System.DateTimeOffset validToDate,
                                                                global::Microsoft.Dynamics.DataEntities.Kitting_KitHeader kitting_KitHeader)
        {
            KittingKitVersion kittingKitVersion = new KittingKitVersion();

            kittingKitVersion.dataAreaId             = dataAreaId;
            kittingKitVersion.KitItemNumber          = kitItemNumber;
            kittingKitVersion.KitId                  = kitId;
            kittingKitVersion.ProductionSiteId       = productionSiteId;
            kittingKitVersion.ProductConfigurationId = productConfigurationId;
            kittingKitVersion.ProductColorId         = productColorId;
            kittingKitVersion.ProductSizeId          = productSizeId;
            kittingKitVersion.ProductStyleId         = productStyleId;
            kittingKitVersion.ValidFromDate          = validFromDate;
            kittingKitVersion.ValidToDate            = validToDate;
            if ((kitting_KitHeader == null))
            {
                throw new global::System.ArgumentNullException("kitting_KitHeader");
            }
            kittingKitVersion.Kitting_KitHeader = kitting_KitHeader;
            return(kittingKitVersion);
        }
        public static KittingKitLine CreateKittingKitLine(string dataAreaId,
                                                          string kitId,
                                                          decimal lineNumber,
                                                          decimal physicalProductWidth,
                                                          decimal consumptionCalculationConstant,
                                                          decimal quantityDenominator,
                                                          decimal physicalProductDepth,
                                                          decimal quantityRoundingUpMultiples,
                                                          decimal physicalProductHeight,
                                                          decimal physicalProductDensity,
                                                          decimal quantity,
                                                          global::Microsoft.Dynamics.DataEntities.Kitting_KitHeader kitting_KitHeader,
                                                          global::Microsoft.Dynamics.DataEntities.Kitting_KitHeader kitHeader)
        {
            KittingKitLine kittingKitLine = new KittingKitLine();

            kittingKitLine.dataAreaId                     = dataAreaId;
            kittingKitLine.KitId                          = kitId;
            kittingKitLine.LineNumber                     = lineNumber;
            kittingKitLine.PhysicalProductWidth           = physicalProductWidth;
            kittingKitLine.ConsumptionCalculationConstant = consumptionCalculationConstant;
            kittingKitLine.QuantityDenominator            = quantityDenominator;
            kittingKitLine.PhysicalProductDepth           = physicalProductDepth;
            kittingKitLine.QuantityRoundingUpMultiples    = quantityRoundingUpMultiples;
            kittingKitLine.PhysicalProductHeight          = physicalProductHeight;
            kittingKitLine.PhysicalProductDensity         = physicalProductDensity;
            kittingKitLine.Quantity                       = quantity;
            if ((kitting_KitHeader == null))
            {
                throw new global::System.ArgumentNullException("kitting_KitHeader");
            }
            kittingKitLine.Kitting_KitHeader = kitting_KitHeader;
            if ((kitHeader == null))
            {
                throw new global::System.ArgumentNullException("kitHeader");
            }
            kittingKitLine.KitHeader = kitHeader;
            return(kittingKitLine);
        }
 partial void OnKitHeaderChanging(global::Microsoft.Dynamics.DataEntities.Kitting_KitHeader value);