• 大小: 26.91MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-03
  • 语言: 其他
  • 标签: MVC源码  MVC4.0  

资源简介

BrnShop开源网上商城源码, 官网下的是MVC3.0版本,没有4.0的。 所以本人已更改MVC4.0版本。可以用VS2012以及以上的版本打开使用。本人只改了MVC版本其他的跟官网一样。

资源截图

代码片段和文件信息

using System;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

using BrnMall.Core;
using BrnMall.Services;
using BrnMall.Web.framework;

namespace BrnMall.Web
{
    public class MvcApplication : System.Web.HttpApplication
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute(“{resource}.axd/{*pathInfo}“);
            //商品路由
            routes.MapRoute(“product“
                            “{pid}.html“
                            new { controller = “catalog“ action = “product“ }
                            new[] { “BrnMall.Web.Controllers“ });
            //分类路由
            routes.MapRoute(“category“
                            “list/{filterAttr}-{cateId}-{brandId}-{filterPrice}-{onlyStock}-{sortColumn}-{sortDirection}-{page}.html“
                            new { controller = “catalog“ action = “category“ }
                            new[] { “BrnMall.Web.Controllers“ });
            //分类路由
            routes.MapRoute(“shortcategory“
                            “list/{cateId}.html“
                            new { controller = “catalog“ action = “category“ }
                            new[] { “BrnMall.Web.Controllers“ });
            //商城搜索路由
            routes.MapRoute(“mallsearch“
                            “search“
                            new { controller = “catalog“ action = “search“ }
                            new[] { “BrnMall.Web.Controllers“ });
            //店铺路由
            routes.MapRoute(“store“
                            “store/{storeId}.html“
                            new { controller = “store“ action = “index“ }
                            new[] { “BrnMall.Web.Controllers“ });
            //店铺分类路由
            routes.MapRoute(“storeclass“
                            “storeclass/{storeId}-{storeCid}-{startPrice}-{endPrice}-{sortColumn}-{sortDirection}-{page}.html“
                            new { controller = “store“ action = “class“ }
                            new[] { “BrnMall.Web.Controllers“ });
            //店铺分类路由
            routes.MapRoute(“shortstoreclass“
                            “storeclass/{storeId}-{storeCid}.html“
                            new { controller = “store“ action = “class“ }
                            new[] { “BrnMall.Web.Controllers“ });
            //店铺搜索路由
            routes.MapRoute(“storesearch“
                            “searchstore“
                            new { controller = “store“ action = “search“ }
                            new[] { “BrnMall.Web.Controllers“ });
            //默认路由(此路由不能删除)
            routes.MapRoute(“default“
                            “{controller}/{action}“
                            new { controller = “home“ action = “index“ }
                            new[] { “BrnMall.Web.Controllers“ });
        }

        protected void Application_Start()
        {
            //将默认视图引擎

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-06-23 16:40  BrnMall-2.1-Mvc4.0\
     目录           0  2015-06-23 16:40  BrnMall-2.1-Mvc4.0\Backup\
     文件       17187  2015-02-11 10:29  BrnMall-2.1-Mvc4.0\Backup\BrnMall.sln
     文件     1536000  2015-02-11 10:34  BrnMall-2.1-Mvc4.0\Backup\BrnMall.v12.suo
     目录           0  2015-06-23 16:40  BrnMall-2.1-Mvc4.0\Backup\Presentation\
     目录           0  2015-06-23 16:40  BrnMall-2.1-Mvc4.0\Backup\Presentation\BrnMall.Web\
     目录           0  2015-06-23 16:40  BrnMall-2.1-Mvc4.0\Backup\Presentation\BrnMall.Web\App_Data\
     文件        1194  2014-08-25 06:26  BrnMall-2.1-Mvc4.0\Backup\Presentation\BrnMall.Web\App_Data\credit.config
     文件         709  2014-08-25 03:37  BrnMall-2.1-Mvc4.0\Backup\Presentation\BrnMall.Web\App_Data\email.config
     文件        2527  2015-01-08 13:34  BrnMall-2.1-Mvc4.0\Backup\Presentation\BrnMall.Web\App_Data\event.config
     文件         320  2015-01-12 12:51  BrnMall-2.1-Mvc4.0\Backup\Presentation\BrnMall.Web\App_Data\installedplugin.config
     文件     9184217  2014-08-25 03:36  BrnMall-2.1-Mvc4.0\Backup\Presentation\BrnMall.Web\App_Data\ipdata.config
     文件        2829  2014-12-08 11:00  BrnMall-2.1-Mvc4.0\Backup\Presentation\BrnMall.Web\App_Data\mall.config
     文件         504  2014-09-13 10:25  BrnMall-2.1-Mvc4.0\Backup\Presentation\BrnMall.Web\App_Data\memcachedcache.config
     文件         465  2014-10-18 12:26  BrnMall-2.1-Mvc4.0\Backup\Presentation\BrnMall.Web\App_Data\memcachedcart.config
     文件         511  2014-09-13 10:29  BrnMall-2.1-Mvc4.0\Backup\Presentation\BrnMall.Web\App_Data\memcachedsession.config
     文件         603  2014-10-23 13:42  BrnMall-2.1-Mvc4.0\Backup\Presentation\BrnMall.Web\App_Data\rabbitmqorder.config
     文件         368  2015-02-11 10:31  BrnMall-2.1-Mvc4.0\Backup\Presentation\BrnMall.Web\App_Data\rdbs.config
     文件        1904  2014-09-13 21:40  BrnMall-2.1-Mvc4.0\Backup\Presentation\BrnMall.Web\App_Data\redisnosql.config
     文件         561  2014-08-25 03:36  BrnMall-2.1-Mvc4.0\Backup\Presentation\BrnMall.Web\App_Data\sms.config
     文件       15443  2015-01-06 10:41  BrnMall-2.1-Mvc4.0\Backup\Presentation\BrnMall.Web\BrnMall.Web.csproj
     文件        1171  2015-01-06 10:41  BrnMall-2.1-Mvc4.0\Backup\Presentation\BrnMall.Web\BrnMall.Web.csproj.user
     文件         103  2014-08-25 03:33  BrnMall-2.1-Mvc4.0\Backup\Presentation\BrnMall.Web\Global.asax
     文件        3642  2014-10-13 10:14  BrnMall-2.1-Mvc4.0\Backup\Presentation\BrnMall.Web\Global.asax.cs
     目录           0  2015-06-23 16:40  BrnMall-2.1-Mvc4.0\Backup\Presentation\BrnMall.Web\Properties\
     文件        1342  2014-08-25 03:33  BrnMall-2.1-Mvc4.0\Backup\Presentation\BrnMall.Web\Properties\AssemblyInfo.cs
     文件        2071  2015-01-01 12:31  BrnMall-2.1-Mvc4.0\Backup\Presentation\BrnMall.Web\Web.config
     文件        2159  2014-12-09 09:10  BrnMall-2.1-Mvc4.0\Backup\Presentation\BrnMall.Web\Web.linux.config
     目录           0  2015-06-23 16:40  BrnMall-2.1-Mvc4.0\Backup\Presentation\BrnMall.Web\controllers\
     文件       32880  2014-12-17 16:04  BrnMall-2.1-Mvc4.0\Backup\Presentation\BrnMall.Web\controllers\AccountController.cs
     文件       50978  2015-01-09 13:34  BrnMall-2.1-Mvc4.0\Backup\Presentation\BrnMall.Web\controllers\CartController.cs
............此处省略2687个文件信息

评论

共有 条评论