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?
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.
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.
I guess that was my issue. I was having trouble finding that. I have it now. Thanks.
Copyright (c) Marimer LLC