没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
ASP.NET MVC 6 Documentation
Release
Microsoft
March 02, 2016
Contents
1 Overview of ASP.NET MVC 3
2 Getting Started 5
2.1 Building your first MVC 6 application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.2 Building Your First Web API with MVC 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
3 Tutorials 103
3.1 Music Store Tutorial . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
3.2 Creating Backend Services for Native Mobile Applications . . . . . . . . . . . . . . . . . . . . . . 103
4 Models 105
4.1 Model Binding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
4.2 Model Validation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
4.3 Formatting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
4.4 Custom Formatters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
5 Views 109
5.1 Razor Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
5.2 Dynamic vs Strongly Typed Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
5.3 HTML Helpers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
5.4 Tag Helpers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
5.5 Partial Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
5.6 Injecting Services Into Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
5.7 View Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
5.8 Creating a Custom View Engine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
5.9 Building Mobile Specific Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
6 Controllers 147
6.1 Controllers, Actions, and Action Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
6.2 Routing to Controller Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
6.3 Error Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
6.4 Filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
6.5 Dependency Injection and Controllers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
6.6 Testing Controller Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
6.7 Areas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
6.8 Working with the Application Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
7 Performance 157
7.1 Response Caching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
i
8 Security 161
8.1 Authorization Filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
8.2 Enforcing SSL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
8.3 Anti-Request Forgery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
8.4 Specifying a CORS Policy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
9 Migration 165
9.1 Migrating From ASP.NET MVC 5 to MVC 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
9.2 Migrating Configuration From ASP.NET MVC 5 to MVC 6 . . . . . . . . . . . . . . . . . . . . . . 179
9.3 Migrating From ASP.NET Web API 2 to MVC 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180
9.4 Migrating Authentication and Identity From ASP.NET MVC 5 to MVC 6 . . . . . . . . . . . . . . . 188
10 Contribute 193
ii
ASP.NET MVC 6 Documentation, Release
Note: This documentation is a work in progress. Topics marked with a are placeholders that have not been written yet.
You can track the status of these topics through our public documentation issue tracker. Learn how you can contribute
on GitHub. Help shape the scope and focus of the ASP.NET content by taking the ASP.NET 5 Documentation Survey.
Contents 1
剩余196页未读,继续阅读
资源评论
- e4724136412018-01-25英文版的,和我之前学mvc3那个专辑管理好像是差不多的,更新成mvc6的 英文不行看图也可以看个大概,在其他地方我也没找到mvc6的资料,分要得有点多
cadn_wang
- 粉丝: 0
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Sora AI-关于文生视频的使用场景说明
- suno AI文生视频的相关教程和介绍使用
- 什么是后端开发-关于后端开发的一些小介绍分享
- Jurassic Pack Vol. II Dinosaurs 侏罗纪包卷恐龙二号Unity游戏模型资源unitypackage
- Jurassic Pack Vol. III Dinosaurs 侏罗纪包卷恐龙三号Unity游戏模型资源unitypackag
- Ultimate Seating Controller 终极座椅控制器Unity游戏开发插件资源unitypackage
- 什么是人工智能-关于人工智能的相关介绍说明
- Figma Converter for Unity适用Unity的Figma转换器Unity游戏开发插件unitypackage
- Creepy Animatronic Anims 令人毛骨悚然的电子动画Unity游戏动画插件资源unitypackage
- Rankings & Leaderboards 排名和排行榜Unity游戏开发插件资源unitypackage
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功