I find this article very helpfull.
http://www.codeproject.com/useritems/ProviderIndependentCode.aspc.x.
>Of course I tried to search in google, a lot of code in there but
>I want some theory.
>
>c.x.
>
>>Hello:
>>
>>There is a tool called the google search. I tried to google: DbProviderFactories.GetFactory() and got 10,000 hits. Surely you can find something in that to help.
>>