I need to use Linq on any IDataReader implementations like this
var c = sqlDataReader.AsEnumerable().Count();
Example:
You can use this:
MyDataReader.Cast()
But don't forget to have the linq statement execute before you close the DataReader. using ToList() for instance