`
webcode
  • 浏览: 5942588 次
  • 性别: Icon_minigender_1
  • 来自: 上海
文章分类
社区版块
存档分类
最新评论

SqlHelper

 
阅读更多
Command type命今类型:一航为StoredProcedure(存储过程)和text(文本).

例如1:ds = SqlHelper.ExecuteDataset(connection, CommandType.StoredProcedure, "sp_Type_AllList");

connection:数据库连接

CommandType.StoredProcedure:命令类型为存储过程.

sp_Type_AllList:存储过程名称

例如2:ds = SqlHelper.ExecuteDataset(connection, CommandType.text, "strsql");

connection:数据库连接

CommandType.text:命令类型为SQL语名.

strsql:SQL语句如"select * from table1 "或"instert into ....."
Command type命今类型:一航为StoredProcedure(存储过程)和text(文本).

例如1:ds = SqlHelper.ExecuteDataset(connection, CommandType.StoredProcedure, "sp_Type_AllList");

connection:数据库连接

CommandType.StoredProcedure:命令类型为存储过程.

sp_Type_AllList:存储过程名称

例如2:ds = SqlHelper.ExecuteDataset(connection, CommandType.text, "strsql");

connection:数据库连接

CommandType.text:命令类型为SQL语名.

strsql:SQL语句如"select * from table1 "或"instert into ....."
分享到:
评论

相关推荐

    SQLHelper数据库操作组件

    SqlHelper是一个基于.NET Framework的数据库操作组件。组件中包含数据库操作方法,SqlHelper有很多版本,主要以微软一开始发布的SqlHelper类,后面包含进了Enterprise Library开源包中了。还有一个主要版本是...

    SqlHelper源码及说明

    // SQLHelper.cs // // This file contains the implementations of the SqlHelper and SqlHelperParameterCache // classes. 这个文件实现了SqlHelper类和SqlHelperParameterCache类 //其中SqlHelper类执行各种方式...

    最新强大而简便的SqlHelper类

    2,所以数据库操作只需要调用SQLHelper中的方法即可.DataAccess类是在SQLHelper类内部调用的类. 3,使用前请先执行以下方法,以进行类初始化: string DBConnectionString = "data source=.;database=Northwind;user id...

    Visual C++源代码 114 如何使用SqlHelper查询数据库记录

    Visual C++源代码 114 如何使用SqlHelper查询数据库记录Visual C++源代码 114 如何使用SqlHelper查询数据库记录Visual C++源代码 114 如何使用SqlHelper查询数据库记录Visual C++源代码 114 如何使用SqlHelper查询...

    SqlHelper(带详细中文注释)

    微软提供的的SQLHelper类,封装了最常用的数据操作,为了方便初学的朋友,上传一个带详细中文注释的SqlHelper。

    Visual C++源代码 115 如何使用SqlHelper增加数据库记录

    Visual C++源代码 115 如何使用SqlHelper增加数据库记录Visual C++源代码 115 如何使用SqlHelper增加数据库记录Visual C++源代码 115 如何使用SqlHelper增加数据库记录Visual C++源代码 115 如何使用SqlHelper增加...

    C# SqlHelper类 (微软官方)

    微软官方C# SqlHelper类 ,内带有注释说明,供大家参考

    Visual C++源代码 116 如何使用SqlHelper获取聚合函数值

    Visual C++源代码 116 如何使用SqlHelper获取聚合函数值Visual C++源代码 116 如何使用SqlHelper获取聚合函数值Visual C++源代码 116 如何使用SqlHelper获取聚合函数值Visual C++源代码 116 如何使用SqlHelper获取...

    SqlHelper组件 v1.1

    sqlhelper是一个完全开源的源码组件,使用sqlhelper可以方便操作sqlserver、oracle、access等数据库。语法简单,提高性能。SqlHelper 的两种写法:SqlHelper make in Visual studio 2010.support sqlserver,access,...

    微软SQLHelper类源码,C#版

    微软SQLHelper类源码,C#版 // =============================================================================== // Microsoft Data Access Application Block for .NET // ...

    非常实用的SqlHelper类

    本SqlHelper类(在ZDevTools.Data命名空间中)最与众不同的地方在于兼顾了易用性与灵活性:她通过委托的方式将你要执行的操作传入SqlHelper类中,所有的连接操作自动维护,却能将DBDataReader、DBCommand这样功能...

    SqlHelper.cs 微软的SQLHelper类(含完整中文注释)

    SqlHelper.cs 微软的SQLHelper类 微软的SQLHelper类(含完整中文注释) 非常好的SQLHelper

    Sqlhelper

    SqlHelper 类实现详细信息SqlHelper 类用于通过一组静态方法来封装数据访问功能。

    C#三层架构数据库连接类SQLHelper,包含标准SQL,参数化和存储过程

    某个培训机构写的SQLHelper,现在分享出来,基于三层架构写的SQLHelper文件,包含标准SQL,参数化和存储过程

    sqlhelper

    SQLHelper类(含完整中文注释)-免费共享

    SQLHelper.cs

    [C#] DataSet ds = SqlHelper.ExecuteDataset( connectionString, CommandType.StoredProcedure, "getProductsByCategory", new SqlParameter("@CategoryID", categoryID)); 注意: Application Block for .NET...

    C# sqlhelper多类库

    C# sqlhelper多类库C# sqlhelper多类库C# sqlhelper多类库

    Sqlhelper类的的内容

    Sqlhelper类的的内容Sqlhelper类的的内容Sqlhelper类的的内容Sqlhelper类的的内容Sqlhelper类的的内容Sqlhelper类的的内容Sqlhelper类的的内容Sqlhelper类的的内容Sqlhelper类的的内容

    SQLHelper中文翻译版本

    SQLHelper中文翻译版本 SQLHelper中文翻译版本 SQLHelper中文翻译版本

    最实用却另类的SqlHelper类

    本SqlHelper类(在ZDevTools.Data命名空间中)最与众不同的地方在于兼顾了易用性与灵活性:她通过委托的方式将你要执行的操作传入SqlHelper类中,所有的连接操作自动维护,却能将DBDataReader、DBCommand这样功能...

Global site tag (gtag.js) - Google Analytics