/// <summary>
 /// Deprecated Method for adding a new object to the ItemUnits EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToItemUnits(ItemUnit itemUnit)
 {
     base.AddObject("ItemUnits", itemUnit);
 }
 /// <summary>
 /// Create a new ItemUnit object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="itemID">Initial value of the ItemID property.</param>
 /// <param name="qtyPerUnit">Initial value of the QtyPerUnit property.</param>
 /// <param name="text">Initial value of the Text property.</param>
 public static ItemUnit CreateItemUnit(global::System.Int32 id, global::System.Int32 itemID, global::System.Int32 qtyPerUnit, global::System.String text)
 {
     ItemUnit itemUnit = new ItemUnit();
     itemUnit.ID = id;
     itemUnit.ItemID = itemID;
     itemUnit.QtyPerUnit = qtyPerUnit;
     itemUnit.Text = text;
     return itemUnit;
 }