首页 > 数据库技术 > 详细

DbProviderFactories.GetFactoryClasses

时间:2015-03-25 11:47:08      阅读:266      评论:0      收藏:0      [点我收藏+]
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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!