/// <summary> /// Create a new check_up object. /// </summary> /// <param name="check_id">Initial value of the check_id property.</param> /// <param name="patient_id">Initial value of the patient_id property.</param> /// <param name="treat_id">Initial value of the treat_id property.</param> /// <param name="med_id">Initial value of the med_id property.</param> public static check_up Createcheck_up(global::System.Int32 check_id, global::System.Int32 patient_id, global::System.Int32 treat_id, global::System.Int32 med_id) { check_up check_up = new check_up(); check_up.check_id = check_id; check_up.patient_id = patient_id; check_up.treat_id = treat_id; check_up.med_id = med_id; return(check_up); }
public void Insert(int patient_id, string complains, string findings, int treat_id, int med_id, int quantity, string check_date) { check_up ch = new check_up(); ch.patient_id = patient_id; ch.complains = complains; ch.findings = findings; ch.treat_id = treat_id; ch.med_id = med_id; ch.quantity = quantity; ch.check_date = Convert.ToDateTime(check_date); using (var Data = new HospitalEntities1()) { Data.check_up.AddObject(ch); Data.SaveChanges(); } }
/// <summary> /// Deprecated Method for adding a new object to the check_up EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTocheck_up(check_up check_up) { base.AddObject("check_up", check_up); }