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