/// <summary> /// Deprecated Method for adding a new object to the StockOnHandHistories EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToStockOnHandHistories(StockOnHandHistory stockOnHandHistory) { base.AddObject("StockOnHandHistories", stockOnHandHistory); }
/// <summary> /// Create a new StockOnHandHistory object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="transactionNo">Initial value of the TransactionNo property.</param> /// <param name="transactionDate">Initial value of the TransactionDate property.</param> /// <param name="transactionBy">Initial value of the TransactionBy property.</param> /// <param name="productId">Initial value of the ProductId property.</param> /// <param name="locationId">Initial value of the LocationId property.</param> /// <param name="lotNo">Initial value of the LotNo property.</param> /// <param name="rowVersion">Initial value of the RowVersion property.</param> public static StockOnHandHistory CreateStockOnHandHistory(global::System.Int32 id, global::System.String transactionNo, global::System.DateTime transactionDate, global::System.String transactionBy, global::System.Int32 productId, global::System.Int32 locationId, global::System.String lotNo, global::System.Byte[] rowVersion) { StockOnHandHistory stockOnHandHistory = new StockOnHandHistory(); stockOnHandHistory.Id = id; stockOnHandHistory.TransactionNo = transactionNo; stockOnHandHistory.TransactionDate = transactionDate; stockOnHandHistory.TransactionBy = transactionBy; stockOnHandHistory.ProductId = productId; stockOnHandHistory.LocationId = locationId; stockOnHandHistory.LotNo = lotNo; stockOnHandHistory.RowVersion = rowVersion; return stockOnHandHistory; }