/// <summary> /// Deprecated Method for adding a new object to the StockOnHands EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToStockOnHands(StockOnHand stockOnHand) { base.AddObject("StockOnHands", stockOnHand); }
/// <summary> /// Create a new StockOnHand object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="lotNo">Initial value of the LotNo property.</param> /// <param name="quantityOnHand">Initial value of the QuantityOnHand property.</param> /// <param name="sellingPrice">Initial value of the SellingPrice property.</param> /// <param name="costPrice">Initial value of the CostPrice property.</param> /// <param name="isAvailableForSale">Initial value of the IsAvailableForSale property.</param> /// <param name="stockOnHand_Location">Initial value of the StockOnHand_Location property.</param> /// <param name="stockOnHand_Product">Initial value of the StockOnHand_Product property.</param> /// <param name="reservedQuantity">Initial value of the ReservedQuantity property.</param> /// <param name="rowVersion">Initial value of the RowVersion property.</param> public static StockOnHand CreateStockOnHand(global::System.Int32 id, global::System.String lotNo, global::System.Double quantityOnHand, global::System.Decimal sellingPrice, global::System.Decimal costPrice, global::System.Boolean isAvailableForSale, global::System.Int32 stockOnHand_Location, global::System.Int32 stockOnHand_Product, global::System.Double reservedQuantity, global::System.Byte[] rowVersion) { StockOnHand stockOnHand = new StockOnHand(); stockOnHand.Id = id; stockOnHand.LotNo = lotNo; stockOnHand.QuantityOnHand = quantityOnHand; stockOnHand.SellingPrice = sellingPrice; stockOnHand.CostPrice = costPrice; stockOnHand.IsAvailableForSale = isAvailableForSale; stockOnHand.StockOnHand_Location = stockOnHand_Location; stockOnHand.StockOnHand_Product = stockOnHand_Product; stockOnHand.ReservedQuantity = reservedQuantity; stockOnHand.RowVersion = rowVersion; return stockOnHand; }