Пример #1
0
        public void PopulatingPublicProperties()
        {
            this.RowCount    = GetRowCount();
            this.ColumnCount = GetColumnCount();
            this.ColumnNames = GetColumnNames();

            List <ResultSetRow> list = new List <ResultSetRow> ();

            if (!IsClosed() && this.Rows != null)
            {
                // Build ResultSetRow List.
                while (MoveToNext())
                {
                    ResultSetRow resultSetRow = new ResultSetRow(CurrentRow, Columns);
                    list.Add(resultSetRow);
                }
                MoveToFirst();                  // reset current position
            }

            this.RowsList = list.ToArray();
        }
Пример #2
0
        public void PopulatingPublicProperties()
        {
            this.RowCount = GetRowCount ();
            this.ColumnCount = GetColumnCount ();
            this.ColumnNames = GetColumnNames ();

            List<ResultSetRow> list = new List<ResultSetRow> ();

            if (!IsClosed () && this.Rows != null) {
                // Build ResultSetRow List.
                while (MoveToNext()) {
                    ResultSetRow resultSetRow = new ResultSetRow (CurrentRow, Columns);
                    list.Add (resultSetRow);
                }
                MoveToFirst (); // reset current position
            }

            this.RowsList = list.ToArray ();
        }