Exemplo n.º 1
0
        public virtual Revision rev(int id)
        {
            Revision revision = _revsTbl.getRev(id);

            if (revision != null)
            {
                _parentsTbl.load(ref revision);
            }

            return(revision);
        }
        public bool MoveNext()
        {
            bool haveNext = false;

            if (_rdr == null)
            {
                _rdr = _cmd.ExecuteReader();

                haveNext = _rdr.HasRows && _rdr.Read();
            }
            else
            {
                haveNext = _rdr.Read();
            }

            if (haveNext)
            {
                _revision = _revTbl.getRev(_rdr.GetInt32(0));
                _parentTbl.load(ref _revision);
            }

            return(haveNext);
        }