DbProviderFactories.GetFactoryClasses

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

DbProviderFactories.GetFactoryClasses

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

DbProviderFactories.GetFactoryClasses

DbProviderFactories.GetFactoryClasses

DbProviderFactories.GetFactoryClasses

上一篇:Android权限解释


下一篇:20145317 网络对抗技术 逆向与Bof基础