/// <summary> /// Deprecated Method for adding a new object to the ProductInStocks EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToProductInStocks(ProductInStock productInStock) { base.AddObject("ProductInStocks", productInStock); }
/// <summary> /// Create a new ProductInStock object. /// </summary> /// <param name="productId">Initial value of the ProductId property.</param> /// <param name="numberOfItem">Initial value of the NumberOfItem property.</param> /// <param name="latestUpdate">Initial value of the LatestUpdate property.</param> public static ProductInStock CreateProductInStock(global::System.Int32 productId, global::System.Int32 numberOfItem, global::System.DateTime latestUpdate) { ProductInStock productInStock = new ProductInStock(); productInStock.ProductId = productId; productInStock.NumberOfItem = numberOfItem; productInStock.LatestUpdate = latestUpdate; return productInStock; }