zoukankan      html  css  js  c++  java
  • 学习笔记之ASP.NET MVC & MVVM & The Repository Pattern

    ASP.NET MVC | The ASP.NET Site

    • 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 - Wikipedia

    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_百度百科

    • 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 Pattern

    • 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.
  • 相关阅读:
    从统计学statistics的观点看概率分布
    JavaScript中getBoundingClientRect()方法详解
    insertRule()与addRule()创建规则
    Canvas 数学、物理、动画学习笔记一
    【超级干货】手机移动端WEB资源整合:转载
    JavaScript性能优化技巧之函数节流
    @font-face的用法
    Modernizr——为HTML5和CSS3而生!
    url、href、src 详解
    认识cookie与session的区别与应用
  • 原文地址:https://www.cnblogs.com/pegasus923/p/8649582.html
Copyright © 2011-2022 走看看