/// <summary> /// Create a new Stock object. /// </summary> /// <param name="itemId">Initial value of the ItemId property.</param> /// <param name="warehouseId">Initial value of the WarehouseId property.</param> /// <param name="quantity">Initial value of the Quantity property.</param> /// <param name="maximunDiscount">Initial value of the MaximunDiscount property.</param> /// <param name="minimumCount">Initial value of the MinimumCount property.</param> public static Stock CreateStock(global::System.Int32 itemId, global::System.Int32 warehouseId, global::System.Decimal quantity, global::System.Decimal maximunDiscount, global::System.Int32 minimumCount) { Stock stock = new Stock(); stock.ItemId = itemId; stock.WarehouseId = warehouseId; stock.Quantity = quantity; stock.MaximunDiscount = maximunDiscount; stock.MinimumCount = minimumCount; return stock; }
/// <summary> /// Deprecated Method for adding a new object to the Stocks EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToStocks(Stock stock) { base.AddObject("Stocks", stock); }