ASP.NET MVC 4应用程序文件夹
来源:互联网 发布:淘宝怎么看第几名下单 编辑:程序博客网 时间:2024/05/01 00:13
App_Start
It has configuration classes to reduce clutter code in the Global.asax
它包含了配置类来减少在Global.asax中的杂乱代码
Application_Start 方法
App_Start 文件夹里有如下文件:
AuthConfig.cs: Related to security settings, including sites for OAuth login.
关于安全设置,包含网站的授权登录。
BundleConfig.cs: Related to register bundles for the bundling and minification
有关用于捆绑和微小的注册捆
FilterConfig.cs: To register global MVC filters.(by default HandleErrorAttribute is registered)
用来注册全局MVC过滤。(默认HandleErrorAttribute是已注册的)
RouteConfig.cs: Related to MVC Route configuration
有关MVC路由的配置
WebApiConfig.cs: Used to register Web API routes and configuration settings.
用于注册Web API路由和配置设置。
Also, this folder helps to use nuget packages that use Application_Start code, without touching Global.asax.cs.
同样,这个文件夹帮助NuGet包使用Application_Start代码儿不接触Global.asax.cs。
Areas
An MVC structure inside the application to partition our web application into smaller parts.
一个MVC架构在应用程序分割我们的web应用成较小的部分。
Content
To put CSS and other static contents
存放CSS和其他静态目录
Controllers
Contains the controller classes
包含控制类
Images
For images, It is being referenced from the Content\Site.css by default.
针对Imanges文件夹,它默认被从Content\SIte.css引用。
Models
Contains view model and domain model classes.
包含视图模型和域模型类
Scripts
Stores all JavaScript libraries and files
存储所有的Javascript库和文件
Views
Related to the display of the application (UI).
关于应用程序界面的显示
/Views/Shared
This directory holds layouts (master-page in-terms of web forms) and views which is used to store views shared between controllers
这个目录掌握着布局(web表单的主页)和被用于在控制类之间存储视图共享的视图
/Views/[FolderName]
Views or Partial Views specific to that folder or single controller like Account folder is specific to Account controller for registering and logging in to user accounts.
视图或者Partial视图针对文件夹或者单个控制,像Account文件夹是针对Account控制类用来注册和打印用户账号的日志。
- ASP.NET MVC 4应用程序文件夹
- 【ASP.NET MVC】应用程序文件夹
- ASP.NET MVC - 应用程序文件夹介绍
- ASP.NET MVC – 应用程序文件夹
- asp.net mvc 应用程序错误“/”
- 【ASP.NET MVC】Internet 应用程序
- ASP.NET应用程序文件夹详细介绍
- ASP.NET MVC 示例应用程序开发
- XP下部署asp.net MVC应用程序
- 为ASP.NET MVC应用程序创建单元测试
- 为ASP.NET MVC应用程序创建单元测试
- ASP.NET MVC应用程序执行过程分析
- 详解ASP.NET MVC应用程序请求生命周期
- asp.net MVC 应用程序的生命周期
- asp.net MVC 应用程序的生命周期
- asp.net MVC 应用程序的生命周期
- asp.net MVC 应用程序的生命周期
- ASP.NET MVC(4)
- SQL数据库还原时错误:操作系统返回了错误 '5(拒绝访问)'的解决办法
- AJAX跨域访问——XMLHttpRequest代理实现
- ActiveX控件进行注册
- >>与>>>
- 图片轮换
- ASP.NET MVC 4应用程序文件夹
- java private成员 无法被继承
- java 空字符串与null区别
- 让ARX程序随CAD一起启动的方法
- div之float,clear特性
- #QNAN、1.#IND和1.#INF等“无效”浮点数说明及其判断
- 抽象类
- delete p指针
- strlen 与sizeof()的区别