
Asp.net MVC
文章平均质量分 86
yjjm1990
活泼开朗 积极向上
展开
-
Programming ASP.NET MVC-Fundamentals of ASP.NET MVC(一)
Microsoft’s Web Development PlatformsUnderstanding the past can be a big help in appreciating the present; so, before we getinto what ASP.NET MVC is and how it works, let’s take a minute to see ju原创 2013-05-21 18:12:02 · 1030 阅读 · 0 评论 -
Programming ASP.NET MVC-Fundamentals of ASP.NET MVC(二)
The Model-View-Controller ArchitectureThe Model-View-Controller pattern is an architectural pattern that encourages strictisolation between the individual parts of an application. This isolation i原创 2013-05-23 13:54:09 · 1008 阅读 · 0 评论 -
Programming ASP.NET MVC-Fundamentals of ASP.NET MVC(三)Convention over Configuration
约定优于配置 为了简化和使网站开发更有成效,ASP.Net MVC尽可能依靠约定优于配置原则。这就是说,不是依赖确定的配置,ASP.NET MVC 假设当开发者开发应用程序的时候会遵循确定的约定。 如下图是ASP.net MVC 的文件结构: 上图是我们建立InernetApplicate模板时自动生成的,给我们提翻译 2013-05-31 22:22:53 · 1295 阅读 · 0 评论 -
Programming ASP.NET MVC-Fundamentals of ASP.NET MVC(四)Routing
在说路径选择之前,我们先来看一下, ASP.NET MVC 的请求生命周期: 路径选择 所有ASP.NET MVC的通讯开始都像其它的网站那样,用一个URL请求。也就是说,仅管在URL中没有提到ASP.NET Routing framework,但是ASP.NET Routing framework是每一个ASP.翻译 2013-06-01 00:02:57 · 2927 阅读 · 0 评论 -
Programming ASP.NET MVC-Fundamentals of ASP.NET MVC(五)Controller
在asp.net mvc的架构里,controller用来响应用户的输入,同时协调view和model以及数据访问层。contorller也是一个类,包含的方法,这些方法是在routing framework处理一个请求的时候被调用的。 我们可以看一下,如果我们建立程序的时候,选择InerterTemplate为我们自动生成的HomeController的代码:原创 2013-06-01 14:55:08 · 2907 阅读 · 0 评论 -
Programming ASP.NET MVC-Fundamentals of ASP.NET MVC(六)View
View 在Asp.net mvc framework里,contorller action如果想显示一个html,会返回一个actionResult类型的ViewResult的实例,然后viewResult渲染内容到客户端。(当渲染view的时候,framework会查找和contrller action名称一致的view。) 比如:homeCont原创 2013-06-03 15:01:30 · 2948 阅读 · 0 评论 -
Programming ASP.NET MVC-Fundamentals of ASP.NET MVC(七)Models
我们在前面的博客中已经讨论了controller和View,接下来,我们来谈一下Models,Models通常被认为asp.net mvc构架里最重要的部分。因为它是包含程序所有逻辑的层,逻辑是所有的程序最难处理的部分。 如果只是从技术的观点来看的话,model只不过包含一系列类,在属性里公开数据,然后在方法里公开逻辑。model要么是“数据模型”或者“领域模型”,它的主原创 2013-06-03 15:29:36 · 2216 阅读 · 0 评论 -
Programming ASP.NET MVC-Fundamentals of ASP.NET MVC(八)Putting It All Together
截止到目前为止,我们已经介绍了组成asp.net mvc应用程序的所有部分,接下来我们put it all together! 添加controller 因为controller就是一个实现了asp.net mvc controller接口的一个普通的类,所以,我们可以手动在controller文件夹下添加一个类,然后继承s原创 2013-06-04 15:05:47 · 2631 阅读 · 0 评论 -
Code First
Programming+Entity+Framework+Code+First是我看的第一本英文资料,看过之后觉得自己的英文阅读能力有明显的提高,code first是基于microsoft的强大的EF开始的一个approach,读过之后,觉得这更像一本将来回头查阅的工具书,不过,我想将来会有用的到的地方。 在看的时候,其实我先是看的programming_asp.net_mv原创 2013-07-25 15:08:58 · 2476 阅读 · 0 评论