• 大小: 3.18MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-11-14
  • 语言: 其他
  • 标签: MVC  网上书店  C#  

资源简介

经典基于MVC三层结构的源程序代码,架构清晰,资源充足,附带数据库,非常适合做毕业设计的朋友,另外,感兴趣的同学也可以看看!

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace BookStore
{
    // 注意: 有关启用 IIS6 或 IIS7 经典模式的说明,
    // 请访问 http://go.microsoft.com/?linkId=9394801

    public class MvcApplication : System.Web.HttpApplication
    {
        public static void RegisterGlobalFilters(GlobalFilterCollection filters)
        {
            filters.Add(new HandleErrorAttribute());
        }

        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute(“{resource}.axd/{*pathInfo}“);

            routes.MapRoute(
                “Default“ // 路由名称
                “{controller}/{action}/{id}“ // 带有参数的 URL
                new { controller = “Home“ action = “Index“ id = UrlParameter.Optional } // 参数默认值
            );

        }

        protected void Application_Start()
        {
            System.Data.Entity.Database.SetInitializer(new BookStore.Models.SampleData());
            AreaRegistration.RegisterAllAreas();

            RegisterGlobalFilters(GlobalFilters.Filters);
            RegisterRoutes(RouteTable.Routes);
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-05-17 18:58  BookStoreSolution\
     目录           0  2018-06-18 10:13  BookStoreSolution\BookStore\
     目录           0  2018-05-18 20:07  BookStoreSolution\BookStore\App_Data\
     文件    10485760  2018-05-18 20:15  BookStoreSolution\BookStore\App_Data\ASPNETDB.MDF
     文件      516096  2018-05-18 20:15  BookStoreSolution\BookStore\App_Data\aspnetdb_log.ldf
     文件         533  2018-06-18 10:13  BookStoreSolution\BookStore\BookStore.Publish.xml
     文件       10270  2018-05-19 11:38  BookStoreSolution\BookStore\BookStore.csproj
     文件        1087  2018-05-19 11:38  BookStoreSolution\BookStore\BookStore.csproj.user
     目录           0  2018-05-19 11:22  BookStoreSolution\BookStore\Content\
     目录           0  2018-05-19 11:38  BookStoreSolution\BookStore\Content\Images\
     文件      864928  2018-05-19 11:37  BookStoreSolution\BookStore\Content\Images\home-showcase.png
     文件        5042  2018-05-18 21:40  BookStoreSolution\BookStore\Content\Images\logo.png
     文件        4963  2018-05-18 22:00  BookStoreSolution\BookStore\Content\Images\placeholder.gif
     文件        4273  2018-05-19 22:53  BookStoreSolution\BookStore\Content\Site.css
     文件      190452  2018-05-19 11:22  BookStoreSolution\BookStore\Content\home-showcase.png
     目录           0  2018-05-17 18:58  BookStoreSolution\BookStore\Content\themes\
     目录           0  2018-05-17 18:58  BookStoreSolution\BookStore\Content\themes\base\
     目录           0  2018-05-17 18:58  BookStoreSolution\BookStore\Content\themes\base\images\
     文件         180  2018-05-17 18:58  BookStoreSolution\BookStore\Content\themes\base\images\ui-bg_flat_0_aaaaaa_40x100.png
     文件         178  2018-05-17 18:58  BookStoreSolution\BookStore\Content\themes\base\images\ui-bg_flat_75_ffffff_40x100.png
     文件         120  2018-05-17 18:58  BookStoreSolution\BookStore\Content\themes\base\images\ui-bg_glass_55_fbf9ee_1x400.png
     文件         105  2018-05-17 18:58  BookStoreSolution\BookStore\Content\themes\base\images\ui-bg_glass_65_ffffff_1x400.png
     文件         111  2018-05-17 18:58  BookStoreSolution\BookStore\Content\themes\base\images\ui-bg_glass_75_dadada_1x400.png
     文件         110  2018-05-17 18:58  BookStoreSolution\BookStore\Content\themes\base\images\ui-bg_glass_75_e6e6e6_1x400.png
     文件         119  2018-05-17 18:58  BookStoreSolution\BookStore\Content\themes\base\images\ui-bg_glass_95_fef1ec_1x400.png
     文件         101  2018-05-17 18:58  BookStoreSolution\BookStore\Content\themes\base\images\ui-bg_highlight-soft_75_cccccc_1x100.png
     文件        4369  2018-05-17 18:58  BookStoreSolution\BookStore\Content\themes\base\images\ui-icons_222222_256x240.png
     文件        4369  2018-05-17 18:58  BookStoreSolution\BookStore\Content\themes\base\images\ui-icons_2e83ff_256x240.png
     文件        4369  2018-05-17 18:58  BookStoreSolution\BookStore\Content\themes\base\images\ui-icons_454545_256x240.png
     文件        4369  2018-05-17 18:58  BookStoreSolution\BookStore\Content\themes\base\images\ui-icons_888888_256x240.png
     文件        4369  2018-05-17 18:58  BookStoreSolution\BookStore\Content\themes\base\images\ui-icons_cd0a0a_256x240.png
............此处省略182个文件信息

评论

共有 条评论