/// <summary> /// Deprecated Method for adding a new object to the PriceHistory EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPriceHistory(PriceHistory priceHistory) { base.AddObject("PriceHistory", priceHistory); }
/// <summary> /// Create a new PriceHistory object. /// </summary> /// <param name="priceHistoryID">Initial value of the PriceHistoryID property.</param> /// <param name="packageID">Initial value of the PackageID property.</param> /// <param name="unitCost">Initial value of the UnitCost property.</param> public static PriceHistory CreatePriceHistory(global::System.Int32 priceHistoryID, global::System.Int32 packageID, global::System.Decimal unitCost) { PriceHistory priceHistory = new PriceHistory(); priceHistory.PriceHistoryID = priceHistoryID; priceHistory.PackageID = packageID; priceHistory.UnitCost = unitCost; return priceHistory; }