/// <summary> /// Deprecated Method for adding a new object to the HotelRoomTypes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToHotelRoomTypes(HotelRoomType hotelRoomType) { base.AddObject("HotelRoomTypes", hotelRoomType); }
/// <summary> /// Create a new HotelRoomType object. /// </summary> /// <param name="hotelRoomTypeID">Initial value of the HotelRoomTypeID property.</param> /// <param name="hotelID">Initial value of the HotelID property.</param> /// <param name="roomType">Initial value of the RoomType property.</param> /// <param name="roomTypeRackRate">Initial value of the RoomTypeRackRate property.</param> /// <param name="roomTypeDescription">Initial value of the RoomTypeDescription property.</param> public static HotelRoomType CreateHotelRoomType(global::System.Int16 hotelRoomTypeID, global::System.Int16 hotelID, global::System.String roomType, global::System.Decimal roomTypeRackRate, global::System.String roomTypeDescription) { HotelRoomType hotelRoomType = new HotelRoomType(); hotelRoomType.HotelRoomTypeID = hotelRoomTypeID; hotelRoomType.HotelID = hotelID; hotelRoomType.RoomType = roomType; hotelRoomType.RoomTypeRackRate = roomTypeRackRate; hotelRoomType.RoomTypeDescription = roomTypeDescription; return hotelRoomType; }