// update database row using the current values public void UpdateFromCurrent(SqlTransaction trans) { PurchaseData dao = new PurchaseData(ConnStr, trans); dao.Update(Id, UserId, ProductId); }