/// <summary>
 /// Deprecated Method for adding a new object to the MedicalRecords EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToMedicalRecords(MedicalRecord medicalRecord)
 {
     base.AddObject("MedicalRecords", medicalRecord);
 }
 /// <summary>
 /// Create a new MedicalRecord object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="doctorId">Initial value of the DoctorId property.</param>
 /// <param name="practiceId">Initial value of the PracticeId property.</param>
 public static MedicalRecord CreateMedicalRecord(global::System.Int32 id, global::System.String name, global::System.Int32 doctorId, global::System.Int32 practiceId)
 {
     MedicalRecord medicalRecord = new MedicalRecord();
     medicalRecord.Id = id;
     medicalRecord.Name = name;
     medicalRecord.DoctorId = doctorId;
     medicalRecord.PracticeId = practiceId;
     return medicalRecord;
 }