/// <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; }
/// <summary> /// Deprecated Method for adding a new object to the Appointments EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToAppointments(Appointment appointment) { base.AddObject("Appointments", appointment); }