예제 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Prescriptions EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPrescriptions(Prescription prescription)
 {
     base.AddObject("Prescriptions", prescription);
 }
예제 #2
0
 /// <summary>
 /// Create a new Prescription object.
 /// </summary>
 /// <param name="id">Initial value of the id property.</param>
 /// <param name="description">Initial value of the description property.</param>
 /// <param name="prescriptionDate">Initial value of the prescriptionDate property.</param>
 /// <param name="medicine">Initial value of the medicine property.</param>
 /// <param name="patient">Initial value of the patient property.</param>
 /// <param name="roomAssigned">Initial value of the roomAssigned property.</param>
 public static Prescription CreatePrescription(global::System.Int32 id, global::System.String description, global::System.DateTime prescriptionDate, global::System.Int32 medicine, global::System.Int32 patient, global::System.Int32 roomAssigned)
 {
     Prescription prescription = new Prescription();
     prescription.id = id;
     prescription.description = description;
     prescription.prescriptionDate = prescriptionDate;
     prescription.medicine = medicine;
     prescription.patient = patient;
     prescription.roomAssigned = roomAssigned;
     return prescription;
 }