/// <summary> /// Create a new Transaction 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="transactionType">Initial value of the TransactionType property.</param> /// <param name="referenceNo">Initial value of the ReferenceNo 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="quantity">Initial value of the Quantity property.</param> /// <param name="cost">Initial value of the Cost property.</param> /// <param name="rowVersion">Initial value of the RowVersion property.</param> public static Transaction CreateTransaction(global::System.Int32 id, global::System.String transactionNo, global::System.DateTime transactionDate, global::System.String transactionType, global::System.String referenceNo, global::System.Int32 productId, global::System.Int32 locationId, global::System.String lotNo, global::System.Double quantity, global::System.Decimal cost, global::System.Byte[] rowVersion) { Transaction transaction = new Transaction(); transaction.Id = id; transaction.TransactionNo = transactionNo; transaction.TransactionDate = transactionDate; transaction.TransactionType = transactionType; transaction.ReferenceNo = referenceNo; transaction.ProductId = productId; transaction.LocationId = locationId; transaction.LotNo = lotNo; transaction.Quantity = quantity; transaction.Cost = cost; transaction.RowVersion = rowVersion; return transaction; }
/// <summary> /// Deprecated Method for adding a new object to the Transactions EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToTransactions(Transaction transaction) { base.AddObject("Transactions", transaction); }