/// <summary> /// Deprecated Method for adding a new object to the Reservations EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToReservations(Reservations reservations) { base.AddObject("Reservations", reservations); }
/// <summary> /// Create a new Reservations object. /// </summary> /// <param name="reservationID">Initial value of the ReservationID property.</param> /// <param name="restaurantID">Initial value of the RestaurantID property.</param> /// <param name="tableID">Initial value of the TableID property.</param> /// <param name="startTime">Initial value of the StartTime property.</param> /// <param name="endTime">Initial value of the EndTime property.</param> public static Reservations CreateReservations(global::System.Int32 reservationID, global::System.Int32 restaurantID, global::System.Int32 tableID, global::System.DateTime startTime, global::System.DateTime endTime) { Reservations reservations = new Reservations(); reservations.ReservationID = reservationID; reservations.RestaurantID = restaurantID; reservations.TableID = tableID; reservations.StartTime = startTime; reservations.EndTime = endTime; return reservations; }