/// <summary> /// Deprecated Method for adding a new object to the RoomReservations EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToRoomReservations(RoomReservation roomReservation) { base.AddObject("RoomReservations", roomReservation); }
/// <summary> /// Create a new RoomReservation object. /// </summary> /// <param name="reservationId">Initial value of the ReservationId property.</param> /// <param name="roomId">Initial value of the RoomId property.</param> /// <param name="id">Initial value of the Id property.</param> public static RoomReservation CreateRoomReservation(global::System.Int32 reservationId, global::System.Int32 roomId, global::System.Int32 id) { RoomReservation roomReservation = new RoomReservation(); roomReservation.ReservationId = reservationId; roomReservation.RoomId = roomId; roomReservation.Id = id; return roomReservation; }