/// <summary> /// Deprecated Method for adding a new object to the ProductPriceSet EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToProductPriceSet(ProductPrice productPrice) { base.AddObject("ProductPriceSet", productPrice); }
/// <summary> /// Create a new ProductPrice object. /// </summary> /// <param name="date">Initial value of the Date property.</param> /// <param name="price">Initial value of the Price property.</param> /// <param name="productId">Initial value of the ProductId property.</param> /// <param name="suplierId">Initial value of the SuplierId property.</param> public static ProductPrice CreateProductPrice(global::System.DateTime date, global::System.Decimal price, global::System.Int32 productId, global::System.Int32 suplierId) { ProductPrice productPrice = new ProductPrice(); productPrice.Date = date; productPrice.Price = price; productPrice.ProductId = productId; productPrice.SuplierId = suplierId; return productPrice; }