public static ItemBatchAttributeValue CreateItemBatchAttributeValue(string dataAreaId,
                                                                            string itemNumber,
                                                                            string itemBatchNumber,
                                                                            string itemBatchAttributeId,
                                                                            int integerValue,
                                                                            decimal decimalValue,
                                                                            global::System.DateTimeOffset dateValue,
                                                                            global::Microsoft.Dynamics.DataEntities.ItemBatchAttribute itemBatchAttribute,
                                                                            global::Microsoft.Dynamics.DataEntities.ItemBatch itemBatch)
        {
            ItemBatchAttributeValue itemBatchAttributeValue = new ItemBatchAttributeValue();

            itemBatchAttributeValue.dataAreaId           = dataAreaId;
            itemBatchAttributeValue.ItemNumber           = itemNumber;
            itemBatchAttributeValue.ItemBatchNumber      = itemBatchNumber;
            itemBatchAttributeValue.ItemBatchAttributeId = itemBatchAttributeId;
            itemBatchAttributeValue.IntegerValue         = integerValue;
            itemBatchAttributeValue.DecimalValue         = decimalValue;
            itemBatchAttributeValue.DateValue            = dateValue;
            if ((itemBatchAttribute == null))
            {
                throw new global::System.ArgumentNullException("itemBatchAttribute");
            }
            itemBatchAttributeValue.ItemBatchAttribute = itemBatchAttribute;
            if ((itemBatch == null))
            {
                throw new global::System.ArgumentNullException("itemBatch");
            }
            itemBatchAttributeValue.ItemBatch = itemBatch;
            return(itemBatchAttributeValue);
        }
 partial void OnItemBatchChanging(global::Microsoft.Dynamics.DataEntities.ItemBatch value);