// create a row in the table using the current values public int CreateFromCurrent(SqlTransaction trans) { PurchaseData dao = new PurchaseData(ConnStr, trans); Id = dao.Create(UserId, ProductId); return(Id); }