Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# 2.0 Return DataReader object
Message
From
10/03/2012 20:10:39
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01537785
Message ID:
01537955
Views:
30
Dmitry -- you may benefit from reading another of my blog posts about DataAccess:

http://geek-goddess-bonnie.blogspot.com/2009/10/dataaccess-part-ii.html

It needs updating just a bit, but I wrote that post several years ago and just haven't gone back to revise it ... I should have had the class implement IDisposable, so that it can be called from a using block, but other than that it's not a bad class. Simplistic perhaps and nees fleshing out, but you'll notice if you look at the code in the blog that every bit of the DataAccess is contained in that one class. No passing back and forth of DataAdapters, only the DataSets get passed back and forth. This keeps all of the database related stuff out of your UI, where it does NOT belong.

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform