• 大小: 7.44MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-09-23
  • 语言: 其他
  • 标签: 网页  

资源简介

网页练习,包括数据库,关于一个简单的购物网站

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Text;
using BCore.Models;
using BCore.DAL;

namespace BCore.BLL
{
    public static partial class CategoryManager
    {
        public static Category AddCategory(Category category)
        {
            return CategoryService.AddCategory(category);
        }

        public static void DeleteCategory(Category category)
        {
            CategoryService.DeleteCategory(category);
        }

        public static void DeleteCategoryById(int id)
        {
            CategoryService.DeleteCategoryById(id);
        }

        public static void ModifyCategory(Category category)
        {
            CategoryService.ModifyCategory(category);
        }

        public static IList GetAllCategories()
        {
            return CategoryService.GetAllCategories();
        }

        public static Category GetCategoryById(int id)
        {
            return CategoryService.GetCategoryById(id);
        }

        /// 
        /// 新建时的名称判断,是否具有唯一性
        /// 为真时则表示已经有数据
        /// 

        /// 名称
        /// 
        public static bool isExistSameName(string sqlConditional)        
        {
            return CategoryService.isExistSameName(sqlConditional);
        }
        /// 
        /// 修改图书分类名
        /// 

        /// 
        /// 
        public static void ModifyCategory(int id string name)
        {
            Category category = CategoryService.GetCategoryById(id);
            if (category != null)
            {
                category.Name = name;
                CategoryService.ModifyCategory(category);
            }
        }
        /// 
        /// 是否有同名
        /// 

        /// 
        /// 
        public static Category GetCategoryByName(string name)
        {
            return CategoryService.GetCategoryByName(name);
        }
        public static Category GetCategoryByName(string nameint id)
        {
            return CategoryService.GetCategoryByName(nameid);
        }
        
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-12-09 15:04  7.1\
     目录           0  2015-12-09 15:04  7.1\BLL\
     文件        4492  2015-12-08 14:08  7.1\BLL\BLL.csproj
     文件         452  2015-12-08 14:08  7.1\BLL\BLL.csproj.user
     文件        2394  2008-09-27 23:18  7.1\BLL\CategoryManager.cs
     文件        1537  2008-10-25 14:19  7.1\BLL\ManufacturerManager.cs
     文件         782  2008-10-24 13:35  7.1\BLL\OrderProdcutsManager.cs
     文件        1636  2008-10-24 14:02  7.1\BLL\OrdersManager.cs
     文件        7977  2008-10-25 14:19  7.1\BLL\ProductsManager.cs
     目录           0  2015-12-09 15:04  7.1\BLL\Properties\
     文件        1319  2008-09-19 00:09  7.1\BLL\Properties\AssemblyInfo.cs
     文件         920  2008-09-19 00:51  7.1\BLL\SearchKeywordManager.cs
     文件        5445  2008-12-02 10:56  7.1\BLL\UserManager.cs
     文件        1144  2008-09-19 00:51  7.1\BLL\UserRoleManager.cs
     文件        1178  2008-09-19 00:51  7.1\BLL\UserStateManager.cs
     目录           0  2015-12-09 15:04  7.1\BLL\bin\
     目录           0  2015-12-09 15:04  7.1\BLL\bin\Debug\
     文件       11776  2015-12-08 15:18  7.1\BLL\bin\Debug\BCore.BLL.dll
     文件       46592  2015-12-08 15:18  7.1\BLL\bin\Debug\BCore.BLL.pdb
     文件       41472  2015-12-08 15:18  7.1\BLL\bin\Debug\BCore.DAL.dll
     文件       93696  2015-12-08 15:18  7.1\BLL\bin\Debug\BCore.DAL.pdb
     文件       14336  2015-12-08 15:18  7.1\BLL\bin\Debug\BCore.Models.dll
     文件       62976  2015-12-08 15:18  7.1\BLL\bin\Debug\BCore.Models.pdb
     目录           0  2015-12-24 15:52  7.1\BLL\bin\Release\
     目录           0  2015-12-09 15:04  7.1\BLL\obj\
     文件         248  2008-12-13 17:34  7.1\BLL\obj\BLL.csproj.FileList.txt
     文件        1720  2008-10-26 14:53  7.1\BLL\obj\BLL.csproj.FileListAbsolute.txt
     目录           0  2015-12-09 15:04  7.1\BLL\obj\Debug\
     文件       11776  2015-12-08 15:18  7.1\BLL\obj\Debug\BCore.BLL.dll
     文件       46592  2015-12-08 15:18  7.1\BLL\obj\Debug\BCore.BLL.pdb
     文件         347  2015-12-08 15:18  7.1\BLL\obj\Debug\BLL.csproj.FileListAbsolute.txt
............此处省略1996个文件信息

评论

共有 条评论