/// <summary> /// Create a new equipment object. /// </summary> /// <param name="equip_id">Initial value of the equip_id property.</param> public static equipment Createequipment(global::System.Int32 equip_id) { equipment equipment = new equipment(); equipment.equip_id = equip_id; return(equipment); }
public void Insert(string equip_name, string requested_date, string date_defected) { equipment eq = new equipment(); eq.equip_name = equip_name; eq.requested_date = Convert.ToDateTime(requested_date); eq.date_defected = Convert.ToDateTime(date_defected); using (var Data = new HospitalEntities1()) { Data.equipments.AddObject(eq); Data.SaveChanges(); } }
/// <summary> /// Deprecated Method for adding a new object to the equipments EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToequipments(equipment equipment) { base.AddObject("equipments", equipment); }