/// <summary>
 /// Deprecated Method for adding a new object to the Units EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToUnits(Unit unit)
 {
     base.AddObject("Units", unit);
 }
 /// <summary>
 /// Create a new Unit object.
 /// </summary>
 /// <param name="unitsID">Initial value of the UnitsID property.</param>
 /// <param name="unitsName">Initial value of the UnitsName property.</param>
 /// <param name="unitsType">Initial value of the UnitsType property.</param>
 /// <param name="unitsAbbreviation">Initial value of the UnitsAbbreviation property.</param>
 public static Unit CreateUnit(global::System.Int32 unitsID, global::System.String unitsName, global::System.String unitsType, global::System.String unitsAbbreviation)
 {
     Unit unit = new Unit();
     unit.UnitsID = unitsID;
     unit.UnitsName = unitsName;
     unit.UnitsType = unitsType;
     unit.UnitsAbbreviation = unitsAbbreviation;
     return unit;
 }