Esempio n. 1
0
 /// <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);
 }
Esempio n. 2
0
 /// <summary>
 /// Create a new Unit object.
 /// </summary>
 /// <param name="unitId">Initial value of the UnitId property.</param>
 public static Unit CreateUnit(global::System.Int32 unitId)
 {
     Unit unit = new Unit();
     unit.UnitId = unitId;
     return unit;
 }