/// <summary>
 /// Create a new Appointment object.
 /// </summary>
 /// <param name="id">Initial value of the id property.</param>
 /// <param name="startTime">Initial value of the startTime property.</param>
 /// <param name="endTime">Initial value of the endTime property.</param>
 /// <param name="description">Initial value of the description property.</param>
 /// <param name="patient">Initial value of the patient property.</param>
 public static Appointment CreateAppointment(global::System.Int32 id, global::System.DateTime startTime, global::System.DateTime endTime, global::System.String description, global::System.Int32 patient)
 {
     Appointment appointment = new Appointment();
     appointment.id = id;
     appointment.startTime = startTime;
     appointment.endTime = endTime;
     appointment.description = description;
     appointment.patient = patient;
     return appointment;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Appointments EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToAppointments(Appointment appointment)
 {
     base.AddObject("Appointments", appointment);
 }