/// <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="unitId">Initial value of the UnitId property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="dateCreated">Initial value of the DateCreated property.</param>
 /// <param name="createdBy">Initial value of the CreatedBy property.</param>
 /// <param name="version">Initial value of the Version property.</param>
 public static Unit CreateUnit(global::System.Decimal unitId, global::System.String name, global::System.DateTime dateCreated, global::System.String createdBy, global::System.Byte[] version)
 {
     Unit unit = new Unit();
     unit.UnitId = unitId;
     unit.Name = name;
     unit.DateCreated = dateCreated;
     unit.CreatedBy = createdBy;
     unit.Version = version;
     return unit;
 }