You definitely want to continue your good OOP encapsulation practices in .NET and create a class that does all that. This was the first thing I wrote when I moved to .NET.
Microsoft also has created a Data Access Application block which does much of this for you. I kow of people who have simply extended it to meet their own personal preferences. http://support.microsoft.com/default.aspx?scid=kb;en-us;829028 http://www.microsoft.com/downloads/details.aspx?FamilyID=76fe2b16-3271-42c2-b138-2891102590ad&displaylang=en HTH -- Dean Fiala Very Practical Software, Inc http://www.vpsw.com On Wed, 15 Sep 2004 15:00:09 -0400, Falls, Travis D (HTSC, CASD) <[EMAIL PROTECTED]> wrote: > I have a general question. I am new to dot new from Java. In java I would > write a class that does all the database stuff. It would open the > connection clean it up, even fill and return the objects. With asp.net, > binding, etc what is the best practice for database programming? I haven't > found any good info on the web yet but I might not be searching for the > correct things. I am assuming you would still want to encapsulate all your > data access in one place but we all know what happens when one assumes. :-) > > Travis D. Falls |Consultant, HTSC Web Services, iConnect IT | 860.547.4070 | > [EMAIL PROTECTED] > > This communication, including attachments, is for the exclusive use of > addressee and may contain proprietary, confidential or privileged > information. If you are not the intended recipient, any use, copying, > disclosure, dissemination or distribution is strictly prohibited. If > you are not the intended recipient, please notify the sender > immediately by return email and delete this communication and destroy all copies. > > > > Yahoo! Groups Links > > > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> $9.95 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/saFolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
