Old forum URL:

ahfat posted on Friday, March 04, 2011

I am going through the DataAccess e-book and there is a mention of a ListDataReader in chapter 4 when implementing a Mock DAL that is used for a List. I cannot seem to find this object anywhere.  Can you direct me to it?

Harry replied on Friday, March 04, 2011

Hi Ahfat,

Have you downloaded the sample code. In the EncapsulatedInvoke example there is a complete implementation of a Mock DB.  I think the code you are looking for is in ArrayDataReader.cs

Hope that helps.



RockfordLhotka replied on Saturday, March 05, 2011

The DataAccess.Mock project in the Data Access ebook sample download includes ArrayDataReader and ListDataReader. These just wrap an array or List<T> with an IDataReader interface so you can access the data from the array/list using standard ADO.NET techniques.

ahfat replied on Monday, March 07, 2011

I guess that was my issue.  I was having trouble finding that.  I have it now.  Thanks.

Copyright (c) Marimer LLC