コード例 #1
0
 /// <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;
 }
コード例 #2
0
 public void Delete(Consultation cs)
 {
     db.Consultations.DeleteObject(cs);
 }
コード例 #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Consultations EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToConsultations(Consultation consultation)
 {
     base.AddObject("Consultations", consultation);
 }
コード例 #4
0
 public void Add(Consultation cs)
 {
     db.Consultations.AddObject(cs);
 }