如何获得configurationmanager类名 [英] how to get configurationmanager class name

查看:89
本文介绍了如何获得configurationmanager类名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我正在尝试通过ConfigurationManager部分连接数据库,但是在编写代码时,该类名称未出现在菜单栏中.所以请帮助我,我应该添加任何库以进行引用.

hi all,


i''m trying to connect database through ConfigurationManager section,but while writing the code this class name is not appearing in the menu bar .so please help me,should i add any library to reference.

推荐答案

Ummmm-ConfigurationManager对象不适用于连接到数据库.您应该使用一系列SQL对象:

SQLConnection
SQLCommand
SQLParameters

仅举几例...
Ummmm - the ConfigurationManager object isn''t for connecting to a database. There are a series of SQL objects that you''re supposed to use:

SQLConnection
SQLCommand
SQLParameters

to name just a few...


我住在命名空间System.Configuration中.
程序集引用为System.Configuration.

干杯
I lives in the namespace System.Configuration.
The assembly reference is System.Configuration.

Cheers


这篇关于如何获得configurationmanager类名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆