Patrick,
>Getting error: Invalid attempt to Read when reader is closed.
>Code in my business object:
>
...
> SqlDataReader dr = (SqlDataReader)this.ExecSprocReader(
> "MyStoredProcedure", this.DatabaseKey, sqlParams);
>
> while ( dr.Read() ) // <--- error
>...
>
>The ExecSprocReader() code in mmDataAccessBase closes the connection before it returns the reader.
>
>I'm not completely sure, but I thought that closing the connection basically closed the reader as well. Please advise, thanks!
I confirmed that this is a problem. We'll fix this in the upcoming release of MM .NET.
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com