- 授权方式:开源软件
- 界面语言:英文软件
- 文件大小: MB
- 更新时间:2014-08-08
- 资源类型:国外软件
- 平台环境:asp.net2.0(C#)
- 推荐等级: ★★★☆☆
- 作者主页: 点击查看
详细介绍 - [ sqlhelper1.1 asp.net(C#) v1.0 ]
sqlhelper是一个完全开源的源码组件,使用sqlhelper可以方便操作sqlserver、oracle、access等数据库。语法简单,提高性能。
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)
);
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.