关键字  
 文件名称: SQLHelper重写了微软提供SQLHelper(共用的数据库调用接口) 1把SqlHelper的connectionString做下载  收藏√  我顶↑
  所属分类: Database system
  开发工具: CSharp
  文件大小: 6 KB
  上传时间: 2004-12-06
  下载次数: 19
  提 供 者: 沈镇杰
 详细说明:重写了微软提供SQLHelper(共用的数据库调用接口) 1把SqlHelper的connectionString做成一个全局量,统一设置数据库连接字符串 2增加了返回特定表名的DataSet的各接口。 可在项目的config文件设置数据库连接字符串 private static string connectionString = System.Configuration.ConfigurationSettings.AppSettings["ConnectionString"] <!-- application specific settings --> <appSettings> <add key="ConnectionString" value="packet size=4096 user id=sa data source=localhost persist security info=True initial catalog=NorthWind password= "/> </appSettings> 当然可以把数据库连接方法修改后直接用。-rewritten Microsoft SQLHelper (shared database Call Interface) a SqlHelper the connectionString caused an overall volume, uniform database connections increased by two strings to the specific name of the table in the DataSet interface. In the config files set database connection string private static string connectionString = System.Configuration.ConfigurationSettings.AppSettings [ "ConnectionString"] lt; ! -- Application specific settings -- gt; Lt; AppSettingsgt; Lt; Add key = "ConnectionString" value = "packet size = 4096 user id = sa data source = localhost persist security info = = True initial catalog NorthWind password =" / gt; lt; / appSettingsgt; of course, the database can be connected directly to amend the methods used.
 输入关键字,在本站50万海量源码库中尽情搜索:  帮助
 [tcpdup-program.rar] - TCP与UDP套接字编程,用C语言开发的
 [ASP.NET2.0.rar] - 《精通ASP.NET2.0网络应用系统开发》书中的源码
 
文件列表(点击判断是否您需要的文件):
  SQLHelper.cs