/// <summary> /// Deprecated Method for adding a new object to the Rooms EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToRooms(Room room) { base.AddObject("Rooms", room); }
/// <summary> /// Create a new Room object. /// </summary> /// <param name="roomID">Initial value of the RoomID property.</param> /// <param name="hotelRoomTypeID">Initial value of the HotelRoomTypeID property.</param> /// <param name="roomNumbers">Initial value of the RoomNumbers property.</param> /// <param name="roomBedConfiguration">Initial value of the RoomBedConfiguration property.</param> /// <param name="roomStatus">Initial value of the RoomStatus property.</param> public static Room CreateRoom(global::System.Int16 roomID, global::System.Int16 hotelRoomTypeID, global::System.String roomNumbers, global::System.String roomBedConfiguration, global::System.String roomStatus) { Room room = new Room(); room.RoomID = roomID; room.HotelRoomTypeID = hotelRoomTypeID; room.RoomNumbers = roomNumbers; room.RoomBedConfiguration = roomBedConfiguration; room.RoomStatus = roomStatus; return room; }