Sql/OleDb/Odbc/ CommandBuilder

T

Tim Bücker

Hello.

I am using the factory pattern to switch between different managed
providers.
For the DataAdapter, Command and Connection objects everything is working
fine due to the interfaces
IDbDataAdapter, IDbCommand and IDbConnection.

But how can I encapsulate OleDbCommandBuilder, SqlCommandBuilder, ... as
there is no interface?
Any ideas? Is it possible at all?

Thanks for your thoughts and help,
Tim.
 
S

Simon Smith

What I've always done it to have my oen class called e.g. DB which is
given sql etc to run. A factory creates different subclasses of it - SqlDB,
OdbcDB, etc.

Simon Smith
simon dot s at ghytred dot com
http://www.ghytred.com/NewsLook - Usenet for Outlook
 

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

Top