/// <summary> /// Deprecated Method for adding a new object to the patient EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTopatient(patient patient) { base.AddObject("patient", patient); }
/// <summary> /// Create a new patient object. /// </summary> /// <param name="id">Initial value of the id property.</param> /// <param name="first">Initial value of the first property.</param> /// <param name="last">Initial value of the last property.</param> /// <param name="dob">Initial value of the dob property.</param> /// <param name="gender">Initial value of the gender property.</param> /// <param name="emergency_contact">Initial value of the emergency_contact property.</param> public static patient Createpatient(global::System.Int32 id, global::System.String first, global::System.String last, global::System.DateTime dob, global::System.String gender, global::System.String emergency_contact) { patient patient = new patient(); patient.id = id; patient.first = first; patient.last = last; patient.dob = dob; patient.gender = gender; patient.emergency_contact = emergency_contact; return patient; }