/// <summary> /// Create a new Consultation object. /// </summary> /// <param name="consultationid">Initial value of the Consultationid property.</param> /// <param name="appontmentid">Initial value of the Appontmentid property.</param> /// <param name="symptoms">Initial value of the Symptoms property.</param> public static Consultation CreateConsultation(global::System.Int32 consultationid, global::System.Int32 appontmentid, global::System.String symptoms) { Consultation consultation = new Consultation(); consultation.Consultationid = consultationid; consultation.Appontmentid = appontmentid; consultation.Symptoms = symptoms; return consultation; }
public void Delete(Consultation cs) { db.Consultations.DeleteObject(cs); }
/// <summary> /// Deprecated Method for adding a new object to the Consultations EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToConsultations(Consultation consultation) { base.AddObject("Consultations", consultation); }
public void Add(Consultation cs) { db.Consultations.AddObject(cs); }