Esempio n. 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Devices EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToDevices(Device device)
 {
     base.AddObject("Devices", device);
 }
Esempio n. 2
0
 /// <summary>
 /// Create a new Device object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="dateAdded">Initial value of the DateAdded property.</param>
 /// <param name="isActive">Initial value of the IsActive property.</param>
 /// <param name="id_Unit">Initial value of the Id_Unit property.</param>
 public static Device CreateDevice(global::System.Int32 id, global::System.String name, global::System.DateTime dateAdded, global::System.Boolean isActive, global::System.Int32 id_Unit)
 {
     Device device = new Device();
     device.Id = id;
     device.Name = name;
     device.DateAdded = dateAdded;
     device.IsActive = isActive;
     device.Id_Unit = id_Unit;
     return device;
 }