Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I've been reading this aeticle:

 

http://www.developer.com/design/article.php/10925_3347291_2

 

to get a better grip on OO design and thoughts. On this section of the article, it talks about "a database access class". It has DB open, close, etc.

 

question: What I've done in my small asp.net/vb.net app is to repeat the conenction string, opening of database, closing it, etc in each subroutine/function

 

So how can I avoid this reapeating of code..actually build a class to do all the DB stuff as this article suggests? anyone with a good example i could look at it?

Posted

is this a typical design that more experienced developers follow? what are other options besides what I do and besides having a "database access class" designed?

 

For example, what would u (and other experienced developers on this forum) suggest?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...