• 大小: 119KB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2021-06-12
  • 语言: C#
  • 标签: ASP.NET  GridView  

资源简介

ASP.NET 三层结构下使用GridView增删改查完整代码,包括sqlserver的脚本,解压直接运行即可。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccess;
using ModelEntity;

namespace BusinessService
{
    /// 
    /// 业务层类
    /// 

    public class ServiceManager
    {
        public static bool add(User user)
        {
            return DBAccess.add(user);
        }

        public static bool delete(int userid)
        {
            return DBAccess.delete(userid);
        }

        public static bool update(User user)
        {
            return DBAccess.update(user);
        }

        public static List getAllUsers()
        {
            return DBAccess.getAllUsers();
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-08-05 15:23  GridView代码\
     目录           0  2012-08-05 15:23  GridView代码\ProjectModel\
     目录           0  2012-08-05 15:23  GridView代码\ProjectModel\BusinessService\
     目录           0  2012-08-05 15:23  GridView代码\ProjectModel\BusinessService\bin\
     目录           0  2012-08-05 15:23  GridView代码\ProjectModel\BusinessService\bin\Debug\
     文件        4608  2012-08-05 15:17  GridView代码\ProjectModel\BusinessService\bin\Debug\BusinessService.dll
     文件       11776  2012-08-05 15:17  GridView代码\ProjectModel\BusinessService\bin\Debug\BusinessService.pdb
     文件       10240  2012-08-05 15:17  GridView代码\ProjectModel\BusinessService\bin\Debug\DataAccess.dll
     文件       26112  2012-08-05 15:17  GridView代码\ProjectModel\BusinessService\bin\Debug\DataAccess.pdb
     文件        4608  2012-08-05 15:17  GridView代码\ProjectModel\BusinessService\bin\Debug\ModelEntity.dll
     文件       11776  2012-08-05 15:17  GridView代码\ProjectModel\BusinessService\bin\Debug\ModelEntity.pdb
     文件        2922  2012-08-05 09:44  GridView代码\ProjectModel\BusinessService\BusinessService.csproj
     目录           0  2012-08-05 15:23  GridView代码\ProjectModel\BusinessService\obj\
     目录           0  2012-08-05 15:23  GridView代码\ProjectModel\BusinessService\obj\Debug\
     文件        1073  2012-08-05 15:17  GridView代码\ProjectModel\BusinessService\obj\Debug\BusinessService.csproj.FileListAbsolute.txt
     文件        4608  2012-08-05 15:17  GridView代码\ProjectModel\BusinessService\obj\Debug\BusinessService.dll
     文件       11776  2012-08-05 15:17  GridView代码\ProjectModel\BusinessService\obj\Debug\BusinessService.pdb
     目录           0  2012-08-05 15:23  GridView代码\ProjectModel\BusinessService\obj\Debug\Refactor\
     文件        3584  2012-08-05 14:28  GridView代码\ProjectModel\BusinessService\obj\Debug\Refactor\BusinessService.dll
     文件        5725  2012-08-05 15:17  GridView代码\ProjectModel\BusinessService\obj\Debug\ResolveAssemblyReference.cache
     目录           0  2012-08-05 15:23  GridView代码\ProjectModel\BusinessService\obj\Debug\TempPE\
     目录           0  2012-08-05 15:23  GridView代码\ProjectModel\BusinessService\Properties\
     文件        1386  2012-08-05 08:56  GridView代码\ProjectModel\BusinessService\Properties\AssemblyInfo.cs
     文件         725  2012-08-05 10:53  GridView代码\ProjectModel\BusinessService\ServiceManager.cs
     目录           0  2012-08-05 15:23  GridView代码\ProjectModel\DataAccess\
     目录           0  2012-08-05 15:23  GridView代码\ProjectModel\DataAccess\bin\
     目录           0  2012-08-05 15:23  GridView代码\ProjectModel\DataAccess\bin\Debug\
     文件       10240  2012-08-05 15:17  GridView代码\ProjectModel\DataAccess\bin\Debug\DataAccess.dll
     文件       26112  2012-08-05 15:17  GridView代码\ProjectModel\DataAccess\bin\Debug\DataAccess.pdb
     文件        4608  2012-08-05 15:17  GridView代码\ProjectModel\DataAccess\bin\Debug\ModelEntity.dll
     文件       11776  2012-08-05 15:17  GridView代码\ProjectModel\DataAccess\bin\Debug\ModelEntity.pdb
............此处省略58个文件信息

评论

共有 条评论