/// <summary> /// Deprecated Method for adding a new object to the Hotels EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToHotels(Hotel hotel) { base.AddObject("Hotels", hotel); }
/// <summary> /// Create a new Hotel object. /// </summary> /// <param name="hotelID">Initial value of the HotelID property.</param> /// <param name="hotelName">Initial value of the HotelName property.</param> /// <param name="hotelAddress">Initial value of the HotelAddress property.</param> /// <param name="hotelCity">Initial value of the HotelCity property.</param> /// <param name="hotelState">Initial value of the HotelState property.</param> /// <param name="hotelCountry">Initial value of the HotelCountry property.</param> /// <param name="hotelRegion">Initial value of the HotelRegion property.</param> /// <param name="hotelPostalCode">Initial value of the HotelPostalCode property.</param> /// <param name="taxLocationID">Initial value of the TaxLocationID property.</param> public static Hotel CreateHotel(global::System.Int16 hotelID, global::System.String hotelName, global::System.String hotelAddress, global::System.String hotelCity, global::System.String hotelState, global::System.String hotelCountry, global::System.String hotelRegion, global::System.String hotelPostalCode, global::System.Int16 taxLocationID) { Hotel hotel = new Hotel(); hotel.HotelID = hotelID; hotel.HotelName = hotelName; hotel.HotelAddress = hotelAddress; hotel.HotelCity = hotelCity; hotel.HotelState = hotelState; hotel.HotelCountry = hotelCountry; hotel.HotelRegion = hotelRegion; hotel.HotelPostalCode = hotelPostalCode; hotel.TaxLocationID = taxLocationID; return hotel; }