Using Sql and OleDB

  • Thread starter Thread starter Steven Blair
  • Start date Start date
S

Steven Blair

Hi,

I have a class which uses SQL object to connect and return data from the
database.

I want to upgrade the functionality of this dll so it can use OleDB.

Should I stick with my current SQl class and add OleDB fucntionality in it,
ie overload methods like MyConnect() or should I write a seperate class and
the suer is then responsible for creating the correct class ?
 
Extending the class would give you an easy way to add this functionality and
still retain the 'look and feel' of it which is probably being referenced
from all over your project. Another approach would be to implement a
factory pattern wherein the class is responsible for creating the objects...
http://www.vbdotnetheaven.com/Code/Jun2003/2043.asp

HTH,

Bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top