using System; using System.Collections.Generic; using System.Text; using System.Data.SqlClient; using System.Data; namespace MyBookShop.DAL { public static class DBHelper { private static...
本文章主要介绍SqlHelper使用。每个项目都要用到数据访问层,我做的也不例外,但是我把数据访问层做成独立项目,没有什么太大的目的,数据访问层,仅仅做数据访问用,不包含任何逻辑。为什么要使用数据访问层?如果不使用数据访问层,那么你...
微软SqlHelper类中文注释和使用方法整理:飞晏博客;网址:http://www.feiyan.info/416.html。 和微软发布的SqlHelper.cs不同,为了方便我把里面的SqlHelperParamet...
...uot;@Cat", SqlDbType.Int);paramsToStore[1] = new SqlParameter("@Sup", SqlDbType.Int);SqlHelperParameterCache.CacheParameterSet(CONN_STRING,spName,paramsToStore); // 从缓存中检索参数SqlParameter[] stored...
...sing System.Data; using System.Configuration; using System.Web.Configuration; public class SqlHelper { //增加删除修改数据 // public static string str = WebConfigurationManager.ConnectionStrings["sql...
...ient; using System.Configuration; using System.Web; namespace SQLDAL { public abstract class SqlHelper { //数据库连接字符串(web.config来配置) public static string connectionString = @"Data Source=.\sqlexpr...
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data; using System.Data.SqlClient; using System.Security.Cryptography; using System.Configurati...
Mini学生管理系统model2Sqlhelper代码经调试已可运行。框架图: 代码://(一)主界面的设计//创建一个类StuManage,该类主要提供给用户一个界面,可以使用户很好的操作学生信息管理系统。该主界面主要实现了界面的美化,为用户提供各...
中文的SqlHelper.cs类//这是在网上找的中文解释的SqlHelperusing System; using System.Configuration; using System.Data; using System...