• 大小: 6.29MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-11-01
  • 语言: C#
  • 标签: c#  

资源简介

用c#和SQL开发的在线购物系统,可以用来做毕业设计哦

资源截图

代码片段和文件信息

using System.Data;
using SqlHelper;
using System.Data.SqlClient;

namespace EnterpriseLibrary
{
    public  class DataCommond
    {
        #region ExecuteNonQuery方法:执行命令,返回受影响的行数       
        /// 
        /// 不带参数的存储过程调用方法
        /// 

        /// 存储过程名
        /// 受影响的行数
        public static int ExecuteNonQuery(string spName)
        {
            return SqlHelper.SqlHelper.ExecuteNonQuery(DataProvider.ConnectionString spName);
        }
        /// 
        /// 带参数的存储过程所调用的方法
        /// 

        /// 存储过程名
        /// 输入的参数数组
        /// 受影响的行数
        public static int ExecuteNonQuery(string spNameparams object[] ob)
        {
            return  SqlHelper.SqlHelper.ExecuteNonQuery(DataProvider.ConnectionString spName ob);
        }
        #endregion        

        #region ExecuteDataSet方法:返回数据集        
        public static DataSet ExecuteDataSet(string comTextparams SqlParameter[] ob)
        {
            return SqlHelper.SqlHelper.ExecuteDataset(DataProvider.ConnectionStringcomTextob);
        }
        /// 
        /// 根据存储过程查询数据返回DataSet数据集.
        /// 

        /// 存储过程名
        /// 数据集
        public static DataSet ExecuteDataSet(string spName)
        {
            return SqlHelper.SqlHelper.ExecuteDataset(DataProvider.ConnectionString spName);
        }
        /// 
        /// 根据存储过程与指定的参数查询数据返回DataSet数据集.
        /// 

        /// 存储过程名
        /// 参数数组
        /// 数据集
        public static DataSet ExecuteDataSet(string spNameparams object[] ob)
        {
            return SqlHelper.SqlHelper.ExecuteDataset(DataProvider.ConnectionString spNameob);
        }
        #endregion

        #region ExecuteScalar方法:返回结果集中的第一行第一列
        /// 
        /// 根据存储过程查询数据返回结果集中的第一行第一列
        /// 

        /// 存储过程名
        /// 返回结果集中的第一行第一列
        public static object ExecuteScalar(string spName)
        {
            return SqlHelper.SqlHelper.ExecuteScalar(DataProvider.ConnectionString spName);
        }
        /// 
        /// 根据存储过程和要求的参数查询数据返回结果集中的第一行第一列
        /// 

        /// 存储过程名
        /// 参数数组
        /// 返回结果集中的第一行第一列
        public static object ExecuteScalar(string spNameparams object[] ob)
        {
            return SqlHelper.SqlHelper.ExecuteScalar(DataProvider.ConnectionString spNameob);
        }
        #endregion        
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-05-15 21:14  论文\
     目录           0  2011-05-15 21:14  论文\bingbing\
     目录           0  2011-05-15 21:14  论文\bingbing\代码\
     目录           0  2011-05-15 21:14  论文\bingbing\代码\shuju\
     文件     1638400  2008-06-10 05:46  论文\bingbing\代码\shuju\NetShop_Data.MDF
     文件     1048576  2008-06-10 05:47  论文\bingbing\代码\shuju\NetShop_Log.LDF
     目录           0  2011-05-15 21:14  论文\bingbing\代码\网络商店\
     目录           0  2011-05-15 21:14  论文\bingbing\代码\网络商店\DataCommand\
     目录           0  2011-05-15 21:14  论文\bingbing\代码\网络商店\DataCommand\bin\
     目录           0  2011-05-15 21:14  论文\bingbing\代码\网络商店\DataCommand\bin\Debug\
     文件       16384  2008-06-10 00:19  论文\bingbing\代码\网络商店\DataCommand\bin\Debug\DataCommand.dll
     文件       13824  2008-06-10 00:19  论文\bingbing\代码\网络商店\DataCommand\bin\Debug\DataCommand.pdb
     文件       36864  2008-06-09 23:57  论文\bingbing\代码\网络商店\DataCommand\bin\Debug\SqlHelper.dll
     文件       67072  2008-06-09 23:57  论文\bingbing\代码\网络商店\DataCommand\bin\Debug\SqlHelper.pdb
     文件        2179  2008-05-23 09:00  论文\bingbing\代码\网络商店\DataCommand\DataCommand.csproj
     文件        3368  2008-06-10 00:18  论文\bingbing\代码\网络商店\DataCommand\DataCommond.cs
     目录           0  2011-05-15 21:14  论文\bingbing\代码\网络商店\DataCommand\obj\
     文件         200  2008-06-10 01:33  论文\bingbing\代码\网络商店\DataCommand\obj\DataCommand.csproj.FileList.txt
     目录           0  2011-05-15 21:14  论文\bingbing\代码\网络商店\DataCommand\obj\Debug\
     文件       16384  2008-06-10 00:19  论文\bingbing\代码\网络商店\DataCommand\obj\Debug\DataCommand.dll
     文件       13824  2008-06-10 00:19  论文\bingbing\代码\网络商店\DataCommand\obj\Debug\DataCommand.pdb
     目录           0  2011-05-15 21:14  论文\bingbing\代码\网络商店\DataCommand\obj\Debug\Refactor\
     文件       16384  2008-05-24 06:54  论文\bingbing\代码\网络商店\DataCommand\obj\Debug\Refactor\DataCommand.dll
     文件        4505  2008-06-09 23:57  论文\bingbing\代码\网络商店\DataCommand\obj\Debug\ResolveAssemblyReference.cache
     目录           0  2011-05-15 21:14  论文\bingbing\代码\网络商店\DataCommand\obj\Debug\TempPE\
     目录           0  2011-05-15 21:14  论文\bingbing\代码\网络商店\DataCommand\Properties\
     文件        1333  2008-05-23 08:48  论文\bingbing\代码\网络商店\DataCommand\Properties\AssemblyInfo.cs
     目录           0  2011-05-15 21:14  论文\bingbing\代码\网络商店\Datascript\
     目录           0  2011-05-15 21:14  论文\bingbing\代码\网络商店\Datascript\Change scripts\
     目录           0  2011-05-15 21:14  论文\bingbing\代码\网络商店\Datascript\Change scripts\back\
     文件        1292  2008-06-03 18:11  论文\bingbing\代码\网络商店\Datascript\Change scripts\back\AddAirCondition.sql
............此处省略467个文件信息

评论

共有 条评论