Communication Penton Style
I had mentioned to the Plano 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...