ConsoleDump icon indicating copy to clipboard operation
ConsoleDump copied to clipboard

Ability to Dump IDataReader objects

Open kraghavk opened this issue 3 years ago • 0 comments

Currently when I use Dump extension method on a DataReader instance, this is what I get:

System.Data.SqlClient.SqlDataReader
 Depth             0
 FieldCount        14
 HasRows           True
 IsClosed          False
 RecordsAffected   -1
 VisibleFieldCount 14

The above visualization is not very useful. Dumping the values as a table, similar to how it is done for DataSet / DataTable would be great.

Thanks a lot for this great library. I use it a lot for my training sessions when teaching C# to newbies.

I am willing to push a PR if you are okay with that.

kraghavk avatar Jul 12 '22 11:07 kraghavk