using System.Data.Common; private void Method1() { DataTable table = DbProviderFactories.GetFactoryClasses(); dataGridView1.DataSource = table; dataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect; dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.DisplayedCells; }

|
Column ordinal |
Column name |
Description |
|---|---|---|
|
0 |
Name |
Human-readable name for the data provider. |
|
1 |
Description |
Human-readable description of the data provider. |
|
2 |
InvariantName |
Name that can be used programmatically to refer to the data provider. |
|
3 |
AssemblyQualifiedName |
Fully qualified name of the factory class, which contains enough information to instantiate the object. |




DbProviderFactories.GetFactoryClasses
原文:http://www.cnblogs.com/chucklu/p/4365009.html