/// <summary>
 /// Create a new Medical object.
 /// </summary>
 /// <param name="medicalId">Initial value of the MedicalId property.</param>
 /// <param name="doctorForename">Initial value of the DoctorForename property.</param>
 /// <param name="doctorSurname">Initial value of the DoctorSurname property.</param>
 /// <param name="expiryDate">Initial value of the ExpiryDate property.</param>
 /// <param name="detailsId">Initial value of the DetailsId property.</param>
 public static Medical CreateMedical(global::System.Int32 medicalId, global::System.String doctorForename, global::System.String doctorSurname, global::System.DateTime expiryDate, global::System.Int32 detailsId)
 {
     Medical medical = new Medical();
     medical.MedicalId = medicalId;
     medical.DoctorForename = doctorForename;
     medical.DoctorSurname = doctorSurname;
     medical.ExpiryDate = expiryDate;
     medical.DetailsId = detailsId;
     return medical;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Medicals EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToMedicals(Medical medical)
 {
     base.AddObject("Medicals", medical);
 }