tags:

views:

24

answers:

1

i want to create a data access layer that work with any provider.
its possible to create a DBCommand using the factory method objDbCon.CreateCommand().
but couldnt find anything to create a DbDataAdapter , so how come?
is this is a bug in ado.net or what?

+2  A: 

DbProviderFactory.CreateDataAdapter *

Also you can get all registered DbProviders via DbProviderFactories class.

*I think this is a wrong place for this method.

Sergey Mirvoda