/// <summary>
 /// Deprecated Method for adding a new object to the Treatments EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTreatments(Treatment treatment)
 {
     base.AddObject("Treatments", treatment);
 }
 /// <summary>
 /// Create a new Treatment object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="dateTreated">Initial value of the DateTreated property.</param>
 /// <param name="medicineUsed">Initial value of the MedicineUsed property.</param>
 /// <param name="treatment_Patient">Initial value of the Treatment_Patient property.</param>
 public static Treatment CreateTreatment(global::System.Int32 id, global::System.DateTime dateTreated, global::System.String medicineUsed, global::System.Int32 treatment_Patient)
 {
     Treatment treatment = new Treatment();
     treatment.Id = id;
     treatment.DateTreated = dateTreated;
     treatment.MedicineUsed = medicineUsed;
     treatment.Treatment_Patient = treatment_Patient;
     return treatment;
 }
示例#3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Treatments EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTreatments(Treatment treatment)
 {
     base.AddObject("Treatments", treatment);
 }