Saturday, February 14, 2009

Create a Lightweight Data Access Layer Using a Generic List

Here is an idea I have for a lightweight data access layer that prevents orphaned data connections from being left opened while passing information between logical layers. This allows you to grab the information you need from the database and immediately close all of the connections. This example is great for XML where all of the data can be cast to a string. Here is an example of the code I wrote.

(click to enlarge)


Here is a glimpse of the XML.

(click to enlarge)




Bookmark and Share

0 comments:

Post a Comment