DbProviderFactories.GetFactoryClasses

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_第1张图片

DbProviderFactories.GetFactoryClasses_第2张图片

DbProviderFactories.GetFactoryClasses_第3张图片

DbProviderFactories.GetFactoryClasses_第4张图片

 

你可能感兴趣的:(Provider)