/// <summary> /// Deprecated Method for adding a new object to the Revenues EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToRevenues(Revenue revenue) { base.AddObject("Revenues", revenue); }
/// <summary> /// Create a new Revenue object. /// </summary> /// <param name="revenueID">Initial value of the RevenueID property.</param> /// <param name="revenueDate">Initial value of the RevenueDate property.</param> /// <param name="revenueAmount">Initial value of the RevenueAmount property.</param> /// <param name="revenueType">Initial value of the RevenueType property.</param> /// <param name="hotelID">Initial value of the HotelID property.</param> /// <param name="revenueCategoryID">Initial value of the RevenueCategoryID property.</param> public static Revenue CreateRevenue(global::System.Int16 revenueID, global::System.DateTime revenueDate, global::System.Decimal revenueAmount, global::System.String revenueType, global::System.Int16 hotelID, global::System.Int16 revenueCategoryID) { Revenue revenue = new Revenue(); revenue.RevenueID = revenueID; revenue.RevenueDate = revenueDate; revenue.RevenueAmount = revenueAmount; revenue.RevenueType = revenueType; revenue.HotelID = hotelID; revenue.RevenueCategoryID = revenueCategoryID; return revenue; }