示例#1
0
        private static void addRowData(SqlDataReader reader, DataMap dataMap)
        {
            var metadata = setResultSchema(reader);
            var rows     = new Rows();

            while (reader.Read())
            {
                getRowData(reader, metadata, rows);
            }

            dataMap.Add(rows);
        }
示例#2
0
        private static async void addRowDataAsync(SqlDataReader reader, DataMap dataMap)
        {
            while (await reader.NextResultAsync())
            {
                var metadata = setResultSchema(reader);
                var rows     = new Rows();

                while (await reader.ReadAsync())
                {
                    getRowData(reader, metadata, rows);
                }

                dataMap.Add(rows);
            }
        }