Getting A List Of Installed Data Providers

  • Thread starter Thread starter Nick Carter
  • Start date Start date
N

Nick Carter

I want to get a list of the installed ADO.NET Data Providers on a machine.
The only way I can see to do this is to look at each and every assembly in
the GAC and use Reflection to see whether the classes contained within have
the necessary signatures which identify them as data provider classes (i.e.
they support the IDbConnection, IDbCommand etc. interfaces). This seems a
bit unnecessary and a bit low tech. Does anyone know of a better way ? Is
there some sort of RegisterDataProvider technique which data providers have
to use to register themselves which I might make use of ?

Nick Carter
 
Back
Top