Link to home
Start Free TrialLog in
Avatar of jkavx
jkavx

asked on

Set DataReader From Cache

I'm working with a third party tool that needs to be provided with an instance of IDataReader for a specific call.  THis has been working fine, but now I have a situation where the data I need to pass to the method is not coming from a database, but is effectively cached in the application.  So I have a List of Dictionary<string, Object> items that needs to be put into a DataReader.

Is there any way to do this?  Can I somehow point a Connection.DataSource to a C# object, maybe a DataTable?

jkavx
ASKER CERTIFIED SOLUTION
Avatar of AngryBinary
AngryBinary

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jkavx
jkavx

ASKER

CreateDataReader() is what I was looking for.  Thx.