/// <summary>
 /// Deprecated Method for adding a new object to the StockTransactions EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToStockTransactions(StockTransaction stockTransaction)
 {
     base.AddObject("StockTransactions", stockTransaction);
 }
 /// <summary>
 /// Create a new StockTransaction object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="transactionPeriod">Initial value of the TransactionPeriod property.</param>
 /// <param name="transactionDate">Initial value of the TransactionDate property.</param>
 /// <param name="transactionNo">Initial value of the TransactionNo property.</param>
 /// <param name="transactionType">Initial value of the TransactionType property.</param>
 /// <param name="itemSequence">Initial value of the ItemSequence property.</param>
 /// <param name="locationId">Initial value of the LocationId property.</param>
 /// <param name="productId">Initial value of the ProductId property.</param>
 /// <param name="lotNo">Initial value of the LotNo property.</param>
 /// <param name="quantity">Initial value of the Quantity property.</param>
 /// <param name="costPrice">Initial value of the CostPrice property.</param>
 /// <param name="rowVersion">Initial value of the RowVersion property.</param>
 public static StockTransaction CreateStockTransaction(global::System.Int32 id, global::System.String transactionPeriod, global::System.DateTime transactionDate, global::System.String transactionNo, global::System.String transactionType, global::System.Int16 itemSequence, global::System.Int32 locationId, global::System.Int32 productId, global::System.String lotNo, global::System.Double quantity, global::System.Decimal costPrice, global::System.Byte[] rowVersion)
 {
     StockTransaction stockTransaction = new StockTransaction();
     stockTransaction.Id = id;
     stockTransaction.TransactionPeriod = transactionPeriod;
     stockTransaction.TransactionDate = transactionDate;
     stockTransaction.TransactionNo = transactionNo;
     stockTransaction.TransactionType = transactionType;
     stockTransaction.ItemSequence = itemSequence;
     stockTransaction.LocationId = locationId;
     stockTransaction.ProductId = productId;
     stockTransaction.LotNo = lotNo;
     stockTransaction.Quantity = quantity;
     stockTransaction.CostPrice = costPrice;
     stockTransaction.RowVersion = rowVersion;
     return stockTransaction;
 }