Home > 源码列表 > asp.net源码 >> 控件组件

sqlhelper1.1 asp.net(C#) v1.0

控件组件 2014-08-08 10:11:29 Source: 网络整理/侵权必删
  • 授权方式:开源软件
  • 界面语言:英文软件
  • 文件大小: MB
  • 更新时间:2014-08-08
  • 资源类型:国外软件
  • 平台环境:asp.net2.0(C#)
  • 推荐等级: ★★★☆☆
  • 作者主页: 点击查看

详细介绍 - [ sqlhelper1.1 asp.net(C#) v1.0 ]

sqlhelper一个完全开源的源码组件,使用sqlhelper可以方便操作sqlserveroracleaccess等数据库。语法简单,提高性能。

SqlHelper 的两种写法:
SqlHelper make in Visual studio 2010.support sqlserver,access,oracle databases.
 
多语句或事务方式:
 
    using (SqlConnection conn = SqlServerHelper.GetConnection())
    {
        conn.Open();
        SqlServerHelper.ExecuteNonQuery(conn,CommandType.Text,"insert into [students] values(@student_name,@class)",
            SqlServerHelper.CreateInputParameter("@student_name", SqlDbType.NVarChar, 100, txt_student_name_sqlserver.Text),
            SqlServerHelper.CreateInputParameter("@class", SqlDbType.NVarChar, 100, txt_class_sqlserver.Text)
            );
        g1.DataSource = SqlServerHelper.ReadTable(conn, CommandType.Text, "select * from [students]", null);
        g1.DataBind();
    }
 
简单方式:
 
        SqlServerHelper.ExecuteNonQuery(CommandType.Text,"insert into [students] values(@student_name,@class)",
            SqlServerHelper.CreateInputParameter("@student_name", SqlDbType.NVarChar, 100, txt_student_name_sqlserver.Text),
            SqlServerHelper.CreateInputParameter("@class", SqlDbType.NVarChar, 100, txt_class_sqlserver.Text)
            );

 


 

 

下载地址 - [ sqlhelper1.1 asp.net(C#) v1.0 ]

Tag: sqlhelper sqlserver oracle access SqlHelper sqlhelper1.1 asp.net 下载 一个


Disclaimer: The content of this article is sourced from the internet. The copyright of the text, images, and other materials belongs to the original author. The platform reprints the materials for the purpose of conveying more information. The content of the article is for reference and learning only, and should not be used for commercial purposes. If it infringes on your legitimate rights and interests, please contact us promptly and we will handle it as soon as possible! We respect copyright and are committed to protecting it. Thank you for sharing.

站长搜索

http://www.adminso.com

Copyright @ 2007~2024 All Rights Reserved.

Powered By 站长搜索

Open your phone and scan the QR code on it to open the mobile version


Scan WeChat QR code

Follow us for more hot news

AdminSo Technical Support