Got more questions? Find advice on: ASP | XML | Regular Expressions | Windows
in Search
Welcome to SqlAdvice Sign in | Join | Help

The Penton-izer

I have moved to http://pentonizer.com so join me there!!!

A better, more manageable DataReader

I had mentioned to the North Dallas DNUG when I presented a while back that I didn't like the idea of passing back a DataReader at all from a DAL.  You lose control of what happens to it when you do (as in the DAL no longer has the responsibility of closing the reader and ensuring its disposal).  Well, Teemu Kieski had a great idea for how to handle this situation in a new article “Using Delegates with DataReaders to control DAL Responsibility“ on AspAlliance.  For a typical developer, it is still a bit advanced but I think the complexity that it hides and the elegance of execution far outweigh that.  I'll be updating my DAL for this...
Sponsor
Published Monday, September 20, 2004 8:57 AM by dpenton

Comments

No Comments
Anonymous comments are disabled