using
(DataTable providers = DbProviderFactories.GetFactoryClasses())
{
Console.WriteLine(
"Available ADO.NET Data Providers:"
);
foreach
(DataRow prov
in
providers.Rows)
{
Console.WriteLine(
"Name:{0}"
, prov[
"Name"
]);
Console.WriteLine(
"Description:{0}"
, prov[
"Description"
]);
Console.WriteLine(
"Invariant Name:{0}"
, prov[
"InvariantName"
]);
}
}