/// <summary> /// Create a new Booking object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="status">Initial value of the Status property.</param> /// <param name="numberOfParticipants">Initial value of the NumberOfParticipants property.</param> /// <param name="comments">Initial value of the Comments property.</param> /// <param name="startTime">Initial value of the StartTime property.</param> /// <param name="endTime">Initial value of the EndTime property.</param> /// <param name="personID">Initial value of the PersonID property.</param> /// <param name="roomID">Initial value of the RoomID property.</param> public static Booking CreateBooking(global::System.Int32 id, global::System.String status, global::System.Int32 numberOfParticipants, global::System.String comments, global::System.DateTime startTime, global::System.DateTime endTime, global::System.Int32 personID, global::System.Int32 roomID) { Booking booking = new Booking(); booking.ID = id; booking.Status = status; booking.NumberOfParticipants = numberOfParticipants; booking.Comments = comments; booking.StartTime = startTime; booking.EndTime = endTime; booking.PersonID = personID; booking.RoomID = roomID; return booking; }
/// <summary> /// Deprecated Method for adding a new object to the Bookings EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToBookings(Booking booking) { base.AddObject("Bookings", booking); }