/// <summary> /// Deprecated Method for adding a new object to the ProductListPriceHistories EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToProductListPriceHistories(ProductListPriceHistory productListPriceHistory) { base.AddObject("ProductListPriceHistories", productListPriceHistory); }
/// <summary> /// Create a new ProductListPriceHistory object. /// </summary> /// <param name="productID">Initial value of the ProductID property.</param> /// <param name="startDate">Initial value of the StartDate property.</param> /// <param name="listPrice">Initial value of the ListPrice property.</param> /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param> public static ProductListPriceHistory CreateProductListPriceHistory(global::System.Int32 productID, global::System.DateTime startDate, global::System.Decimal listPrice, global::System.DateTime modifiedDate) { ProductListPriceHistory productListPriceHistory = new ProductListPriceHistory(); productListPriceHistory.ProductID = productID; productListPriceHistory.StartDate = startDate; productListPriceHistory.ListPrice = listPrice; productListPriceHistory.ModifiedDate = modifiedDate; return productListPriceHistory; }