• 大小: 8.84MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-22
  • 语言: C#
  • 标签: C#  

资源简介

基于。net的网上购物系统,用sql数据库,带有论文,系统介绍详细,代码清晰

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Text;
using Numensoft.Data;
using System.Reflection;
using System.Configuration;
using MappedClasses;
using System.Data;


namespace BusinessManager
{
    
    public class BusinessManager
    {
        #region   插入操作
        public void Insert(T instance)
        {
           NumensoftSqlConnection nmsqlcon=new NumensoftSqlConnection(instance);
           nmsqlcon.Add(instance);
        }
        #endregion
        #region    验证登陆
        public bool validate(T instance)
        {
            NumensoftSqlConnection nmsqlcon = new NumensoftSqlConnection(instance);
            bool validat=nmsqlcon.validate(instance);
            return validat;
        }
        #endregion
        #region   根据关键字取的信息
        /// 
        /// 根据关键字取的整个行信息
        /// 

        /// 
        /// 
        public T GetMessageByID(T instance)
        {
            NumensoftSqlConnection nmsqlcon = new NumensoftSqlConnection(instance);
             return nmsqlcon.GetMessageByID(instance);

         }
        #endregion
        #region   更新数据
        public void Update(T instance)
        {
            NumensoftSqlConnection nmsqlcon = new NumensoftSqlConnection(instance);
            nmsqlcon.Update(instance);
        }
         #endregion
        #region       获取整张表
        /// 
        /// 通过标记类获取整张表
        /// 

        /// 
        /// 
        public DataTable GetDataTable(T instance)
        {
            NumensoftSqlConnection nmsqlcon = new NumensoftSqlConnection(instance);
            return nmsqlcon.GetDataTable();
        }
        
        #endregion
        #region   删除整张表
        public void DeleteTable(T instance)
        {
            NumensoftSqlConnection nmsqlcon = new NumensoftSqlConnection(instance);
            nmsqlcon.DeleteTable(instance);
        }
        #endregion
        #region   删除指定类型的映射实例
        public void Delete(T instance)
        {
            NumensoftSqlConnection nmsqlcon = new NumensoftSqlConnection(instance);
            nmsqlcon.Delete(instance);
        }
        #endregion
        #region     返回经过处理表的DataSet
        public DataSet GetDataSet(String SQLStatementT instance)
        {
            NumensoftSqlConnection nmsqlcon = new NumensoftSqlConnection(instance);
            return nmsqlcon.CreateDateSet(SQLStatement);

        }
        #endregion 
        #region        判断数据库中是否存在该字段名
        public bool Judge(String SQLStatement T instance)
        {
            NumensoftSqlConnection nmsqlcon = new NumensoftSqlConnection(instance);
            return  nmsqlcon.Judge(SQLStatement);

        }
        #endregion
    }

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     目录          0  2009-06-29 10:24  Numensoft

     目录          0  2009-06-01 16:51  Numensoft\BusinessManager

     目录          0  2009-06-01 16:51  Numensoft\BusinessManager\bin

     目录          0  2009-06-01 16:51  Numensoft\BusinessManager\bin\Debug

     文件      16384  2009-05-04 18:22  Numensoft\BusinessManager\bin\Debug\BusinessManager.dll

     文件      15872  2009-05-04 18:22  Numensoft\BusinessManager\bin\Debug\BusinessManager.pdb

     文件      28672  2009-05-04 18:22  Numensoft\BusinessManager\bin\Debug\MappedClasses.dll

     文件      62976  2009-05-04 18:22  Numensoft\BusinessManager\bin\Debug\MappedClasses.pdb

     文件      24576  2009-05-04 18:21  Numensoft\BusinessManager\bin\Debug\Numensoft.Data.dll

     文件      40448  2009-05-04 18:21  Numensoft\BusinessManager\bin\Debug\Numensoft.Data.pdb

     目录          0  2009-06-01 16:51  Numensoft\BusinessManager\bin\Release

     文件       3122  2004-10-31 14:43  Numensoft\BusinessManager\BusinessManager.cs

     文件       2513  2004-10-27 15:24  Numensoft\BusinessManager\BusinessManager.csproj

     目录          0  2009-06-01 16:51  Numensoft\BusinessManager\obj

     文件        284  2009-05-12 18:17  Numensoft\BusinessManager\obj\BusinessManager.csproj.FileList.txt

     目录          0  2009-06-01 16:51  Numensoft\BusinessManager\obj\Debug

     文件      16384  2009-05-04 18:22  Numensoft\BusinessManager\obj\Debug\BusinessManager.dll

     文件      15872  2009-05-04 18:22  Numensoft\BusinessManager\obj\Debug\BusinessManager.pdb

     目录          0  2009-06-01 16:51  Numensoft\BusinessManager\obj\Debug\Refactor

     文件       6139  2009-05-04 18:22  Numensoft\BusinessManager\obj\Debug\ResolveAssemblyReference.cache

     目录          0  2009-06-01 16:51  Numensoft\BusinessManager\obj\Debug\TempPE

     目录          0  2009-06-01 16:51  Numensoft\BusinessManager\obj\Release

     目录          0  2009-06-01 16:51  Numensoft\BusinessManager\obj\Release\TempPE

     目录          0  2009-06-01 16:51  Numensoft\BusinessManager\Properties

     文件       1349  2004-10-25 17:06  Numensoft\BusinessManager\Properties\AssemblyInfo.cs

     目录          0  2009-06-01 16:51  Numensoft\MappedClasses

     目录          0  2009-06-01 16:51  Numensoft\MappedClasses\bin

     目录          0  2009-06-01 16:51  Numensoft\MappedClasses\bin\Debug

     文件      28672  2009-05-04 18:22  Numensoft\MappedClasses\bin\Debug\MappedClasses.dll

     文件      62976  2009-05-04 18:22  Numensoft\MappedClasses\bin\Debug\MappedClasses.pdb

............此处省略294个文件信息

评论

共有 条评论