Exemplo n.º 1
0
 /// <summary>
 /// Create a new Appointment object.
 /// </summary>
 /// <param name="appointmentID">Initial value of the AppointmentID property.</param>
 /// <param name="appointmentNo">Initial value of the AppointmentNo property.</param>
 /// <param name="date">Initial value of the Date property.</param>
 /// <param name="timeFrom">Initial value of the TimeFrom property.</param>
 /// <param name="timeTo">Initial value of the TimeTo property.</param>
 /// <param name="userID">Initial value of the UserID property.</param>
 /// <param name="custID">Initial value of the CustID property.</param>
 public static Appointment CreateAppointment(global::System.Int32 appointmentID, global::System.Int32 appointmentNo, global::System.DateTime date, global::System.TimeSpan timeFrom, global::System.TimeSpan timeTo, global::System.Int32 userID, global::System.Int32 custID)
 {
     Appointment appointment = new Appointment();
     appointment.AppointmentID = appointmentID;
     appointment.AppointmentNo = appointmentNo;
     appointment.Date = date;
     appointment.TimeFrom = timeFrom;
     appointment.TimeTo = timeTo;
     appointment.UserID = userID;
     appointment.CustID = custID;
     return appointment;
 }
Exemplo n.º 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);
 }