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); }
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); } }