DbProviderFactory, System.Data.Common, huh?

J

Jeff Jarrell

I finally stumbled across the DbProviderFactory in System.Data.Common. I
had a similar factory in my framework but I thought it would be better to
use the framework code, so of I went to change the code.

As I was doing this it is apparent that when using the DbProvider (both the
base and the derived types), they do not have any of the additional method
signatures on the Create???.

DbProviderFactory.CreateParameter(). First thing you need to do is to at
least assign a name, then perhaps a type. In the MSSQL client there are
seven signatures. Some of which are essential for working with datasets and
adapters.

So correct me if I am wrong, but I need to write a wrapper\helper\factory
method of encapsulate DbProviderFactory to provide some of the additional
signatures. Seems like the idea is a little half-baked. Aargh...

Thanks,
jeff
 

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