/// <summary>
 /// Deprecated Method for adding a new object to the MedicalAppointments EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToMedicalAppointments(MedicalAppointment medicalAppointment)
 {
     base.AddObject("MedicalAppointments", medicalAppointment);
 }
 /// <summary>
 /// Create a new MedicalAppointment object.
 /// </summary>
 /// <param name="medicalAppointmentId">Initial value of the MedicalAppointmentId property.</param>
 /// <param name="accountId">Initial value of the AccountId property.</param>
 /// <param name="providerId">Initial value of the ProviderId property.</param>
 /// <param name="appointmentDateTime">Initial value of the AppointmentDateTime property.</param>
 /// <param name="currentVersion">Initial value of the CurrentVersion property.</param>
 public static MedicalAppointment CreateMedicalAppointment(global::System.Int32 medicalAppointmentId, global::System.Int32 accountId, global::System.Int32 providerId, global::System.DateTimeOffset appointmentDateTime, global::System.Byte[] currentVersion)
 {
     MedicalAppointment medicalAppointment = new MedicalAppointment();
     medicalAppointment.MedicalAppointmentId = medicalAppointmentId;
     medicalAppointment.AccountId = accountId;
     medicalAppointment.ProviderId = providerId;
     medicalAppointment.AppointmentDateTime = appointmentDateTime;
     medicalAppointment.CurrentVersion = currentVersion;
     return medicalAppointment;
 }