/// <summary> /// Create a new tblBooking object. /// </summary> /// <param name="bookingId">Initial value of the BookingId property.</param> /// <param name="tutorId">Initial value of the TutorId property.</param> /// <param name="studentId">Initial value of the StudentId property.</param> /// <param name="dateOfBooking">Initial value of the DateOfBooking property.</param> /// <param name="description">Initial value of the Description property.</param> /// <param name="timeOfBooking">Initial value of the TimeOfBooking property.</param> /// <param name="courseId">Initial value of the CourseId property.</param> public static tblBooking CreatetblBooking(global::System.Int32 bookingId, global::System.Int32 tutorId, global::System.Int32 studentId, global::System.DateTime dateOfBooking, global::System.String description, global::System.String timeOfBooking, global::System.Int32 courseId) { tblBooking tblBooking = new tblBooking(); tblBooking.BookingId = bookingId; tblBooking.TutorId = tutorId; tblBooking.StudentId = studentId; tblBooking.DateOfBooking = dateOfBooking; tblBooking.Description = description; tblBooking.TimeOfBooking = timeOfBooking; tblBooking.CourseId = courseId; return tblBooking; }
/// <summary> /// Deprecated Method for adding a new object to the tblBookings EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTotblBookings(tblBooking tblBooking) { base.AddObject("tblBookings", tblBooking); }