Пример #1
0
 /// <summary>
 /// Create a new Unit object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="id_Zone">Initial value of the Id_Zone property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="dateAdded">Initial value of the DateAdded property.</param>
 /// <param name="address">Initial value of the Address property.</param>
 /// <param name="isActive">Initial value of the IsActive property.</param>
 public static Unit CreateUnit(global::System.Int32 id, global::System.Int32 id_Zone, global::System.String name, global::System.DateTime dateAdded, global::System.String address, global::System.Boolean isActive)
 {
     Unit unit = new Unit();
     unit.Id = id;
     unit.Id_Zone = id_Zone;
     unit.Name = name;
     unit.DateAdded = dateAdded;
     unit.Address = address;
     unit.IsActive = isActive;
     return unit;
 }
Пример #2
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);
 }