Exemplo n.º 1
0
        // 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);
        }