学习笔记之ASP.NET MVC & MVVM & The Repository Pattern

ASP.NET MVC | The ASP.NET Sitehtml

  • https://www.asp.net/mvc
  • ASP.NET MVC gives you a powerful, patterns-based way to build dynamic websites that enables a clean separation of concerns and that gives you full control over markup for enjoyable, agile development. ASP.NET MVC includes many features that enable fast, TDD-friendly development for creating sophisticated applications that use the latest web standards.

ASP.NET MVC - Wikipediaweb

asp.net mvc_百度百科数据库

  • https://baike.baidu.com/item/asp.net%20mvc/7497280?fr=aladdin

ASP.NET MVC 简介 | 菜鸟教程编程

  • http://www.runoob.com/aspnet/mvc-intro.html
  • ASP.NET 是一个使用 HTML、CSS、JavaScript 和服务器脚本建立网页和网站的开发框架。
  • ASP.NET 支持三种不一样的开发模式:Web Pages(Web 页面)、MVC(Model View Controller 模型-视图-控制器)、Web Forms(Web 窗体):
Web Pages单页面模式   MVC
模型-视图-控制器
  Web Forms
事件驱动模式

最简单的 ASP.NET 模式。

与 PHP 和经典 ASP 类似。

内置了数据库、视频、图形、社交媒体等模板和帮助器。
 
MVC 将 Web 应用程序分红 3 个不一样的组成部分: 

模型负责数据
视图负责显示
控制器负责输入
 
传统的 ASP.NET 事件驱动开发模式:

带有服务器控件、服务器事件和服务器代码的网页。
  • MVC 是三种 ASP.NET 编程模式中的一种。
  • MVC 是一种使用 MVC(Model View Controller 模型-视图-控制器)设计建立 Web 应用程序的模式:
    • Model(模型)表示应用程序核心(好比数据库记录列表)。
    • View(视图)显示数据(数据库记录)。
    • Controller(控制器)处理输入(写入数据库记录)。
  • MVC 模式同时提供了对 HTML、CSS 和 JavaScript 的彻底控制。
  • ASP.NET MVC 参考手册 | 菜鸟教程
    • http://www.runoob.com/aspnet/mvc-reference.html

The MVVM Pattern服务器

  • https://msdn.microsoft.com/en-us/library/hh848246.aspx
  • The MVVM pattern lends itself naturally to XAML application platforms such as Silverlight. This is because the MVVM pattern leverages some of the specific capabilities of Silverlight, such as data binding, commands, and behaviors. MVVM is similar to many other patterns that separate the responsibility for the appearance and layout of the UI from the responsibility for the presentation logic; for example, if you're familiar with the Model-View-Controller (MVC) pattern, you'll find that MVVM has many similar concepts.

Model–view–viewmodel - Wikipedia架构

  • https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93viewmodel
  • Model–View–ViewModel (MVVM) is a software architectural pattern.

MVVM_百度百科mvc

  • https://baike.baidu.com/item/MVVM/96310?fr=aladdin
  • MVVM是Model-View-ViewModel的简写。它本质上就是MVC 的改进版。MVVM 就是将其中的View 的状态和行为抽象化,让咱们将视图 UI 和业务逻辑分开。固然这些事 ViewModel 已经帮咱们作了,它能够取出 Model 的数据同时帮忙处理 View 中因为须要展现内容而涉及的业务逻辑。微软的WPF带来了新的技术体验,如Silverlight、音频视频3D动画……,这致使了软件UI层更加细节化、可定制化。同时,在技术层面,WPF也带来了 诸如Binding、Dependency Property、Routed Events、Command、DataTemplate、ControlTemplate等新特性。MVVM(Model-View-ViewModel)框架的由来即是MVP(Model-View-Presenter)模式与WPF结合的应用方式时发展演变过来的一种新型架构框架。它立足于原有MVP框架而且把WPF的新特性糅合进去,以应对客户日益复杂的需求变化。

The Repository Patternapp

  • https://msdn.microsoft.com/en-us/library/ff649690.aspx

How to Implement the Repository Pattern in ASP.NET MVC Application | Infragistics Blog框架

  • https://www.infragistics.com/community/blogs/b/dhananjay_kumar/posts/how-to-implement-the-repository-pattern-in-asp-net-mvc-application
  • The Repository Pattern is one of the most popular patterns to create an enterprise level application. It restricts us to work directly with the data in the application and creates new layers for database operations, business logic, and the application’s UI.
相关文章
相关标签/搜索