Пример #1
0
 /// <summary>
 /// Create a new Appointment object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="appointmentTime">Initial value of the AppointmentTime property.</param>
 /// <param name="appointmentType">Initial value of the AppointmentType property.</param>
 /// <param name="appointment_Patient">Initial value of the Appointment_Patient property.</param>
 public static Appointment CreateAppointment(global::System.Int32 id, global::System.DateTime appointmentTime, global::System.Int16 appointmentType, global::System.Int32 appointment_Patient)
 {
     Appointment appointment = new Appointment();
     appointment.Id = id;
     appointment.AppointmentTime = appointmentTime;
     appointment.AppointmentType = appointmentType;
     appointment.Appointment_Patient = appointment_Patient;
     return appointment;
 }
Пример #2
0
 /// <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);
 }