Ejemplo n.º 1
0
        // Get rows from result set by executing query
        public override IEnumerable <DataRow> GetRows()
        {
            _database.OpenStatement();
            _isactive = true;
            _database.ExecuteQueryMulti(GetQuery());
            while (_database.HasData)
            {
                var values = new TypedValue[Degree];
                _database.GetData(Heading, values);
                yield return(DataRow.Create(Heading, values));

                _database.Fetch();
            }
            _isactive = false;
            _database.CloseStatement();
        }