/// <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="id">Initial value of the ID property.</param> /// <param name="gUID">Initial value of the GUID property.</param> /// <param name="isArchive">Initial value of the IsArchive property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="roomsCount">Initial value of the RoomsCount property.</param> /// <param name="roomsCategory">Initial value of the RoomsCategory property.</param> /// <param name="description">Initial value of the Description property.</param> /// <param name="addedDate">Initial value of the AddedDate property.</param> /// <param name="starLevel">Initial value of the StarLevel property.</param> /// <param name="floorCount">Initial value of the FloorCount property.</param> public static Hotel CreateHotel(global::System.Int32 id, global::System.Guid gUID, global::System.Boolean isArchive, global::System.String name, global::System.Int32 roomsCount, global::System.String roomsCategory, global::System.String description, global::System.DateTime addedDate, global::System.Int32 starLevel, global::System.Int32 floorCount) { Hotel hotel = new Hotel(); hotel.ID = id; hotel.GUID = gUID; hotel.IsArchive = isArchive; hotel.Name = name; hotel.RoomsCount = roomsCount; hotel.RoomsCategory = roomsCategory; hotel.Description = description; hotel.AddedDate = addedDate; hotel.StarLevel = starLevel; hotel.FloorCount = floorCount; return hotel; }