好書推薦《Pro ASP.NET MVC 3 Framework 3rd Edition》


花了兩個多星期的時間,從頭到尾看了一遍,看此書如沐甘霖,絕對是一本好書。第4章講的非常精辟,先介紹了架構模式的演化歷史,從Smart UI, Model-View, Three-Tier到MVC;並比較了與Model-View-Presenter和Model-View-View Model的區別。然后介紹了領域驅動(Domain-Driven Development)、依賴注入(Dependency Injection)和單元測試(Unit Testing),再后面的章節中貫徹了這三種思想並用在了實例中。第6章介紹的Nject和Moq工具以前也沒用過,再不用的話就會感覺很落后。第11至20章是本書的核心內容,詳細講解了ASP.NET MVC 3 Framework,尤其是15至19章能學到很多新知識。

以前也感覺MVC好用,但是覺得不夠快,不能拖一些控件直接到頁面上,看完此書才知道並沒有把MVC真正的優勢發揮出來,當然VS如果能自帶多一些MVC的控件就更好了。

另外關於MongoDB,推薦《MongoDB.in.Action》,這本也看了一大半了。

附:目錄

Part 1: Introducing ASP.NET MVC 3
第1部分:ASP.NET MVC 3介紹
  Chapter 1: What’s the Big Idea?
  第1章:偉大的思想

  Chapter 2: Getting Ready
  第2章:准備工作

  Chapter 3: Your First MVC Application
  第3章:第一個MVC應用程序
    3.1 Creating a New ASP.NET MVC Project【生成一個新的MVC項目】
    3.2 Rendering Web Pages【渲染Web頁面】
    3.3 Creating a Simple Data-Entry Application【生成一個簡單的數據-實體應用程序】(一)
    3.3 Creating a Simple Data-Entry Application【生成一個簡單的數據-實體應用程序】(二)
    3.4 Summary【概要】

  Chapter 4: The MVC Pattern
  第4章:MVC模式
    4.1 The History of MVC【MVC簡史】
    4.2 Understanding the MVC Pattern【理解MVC模式】
    4.3 Applying Domain-Driven Development【運用域驅動開發】
    4.4 Building Loosely Coupled Components【建立松耦合組件】
    4.5 Getting Started with Automated Testing【自動測試初步】
    4.6 Summary【概要】

  Chapter 5: Essential Language Features
  第5章:基本語言特性
    5.1 Essential C# Features【C#基本特性】(自動屬性、對象與集合初始化器)
    5.1 Essential C# Features【C#基本特性】(擴展方法)
    5.1 Essential C# Features【C#基本特性】(Lambda表達式)
    5.1 Essential C# Features【C#基本特性】(自動類型接口、匿名類型、LINQ查詢、延遲LINQ)
    5.2 Understanding Razor Syntax【理解Razor語法】(一)
    5.2 Understanding Razor Syntax【理解Razor語法】(二)
    5.3 Summary【概要】

  Chapter 6: Essential Tools for MVC
  第6章:MVC主要工具
    6.1 Using Ninject【使用Ninject】
    6.2 Applying Ninject to ASP.NET MVC【將Ninject用於ASP.NET MVC】
    6.3 Unit Testing with Visual Studio【Visual Studio的單元測試】
    6.4 Using Moq【使用Moq】
    6.5 Summary【概要】

  Chapter 7: SportsStore: A Real Application
  第7章:體育商店:一個真實的應用程序
    7.1 Getting Started【開始】
    7.2 Starting the Domain Model【域模型】
    7.3 Displaying a List of Products【顯示產品列表】
    7.4 Preparing a Database【准備數據庫】
    7.5 Adding Pagination【添加分頁】
    7.6 Styling the Content【設置內容樣式】
    7.7 Summary【概要】

  Chapter 8: SportsStore: Navigation and Cart
  第8章:體育商店:導航與購物車
    8.1 Adding Navigation Controls【添加導航控件】
    8.2 Building the Shopping Cart【建立購物車】
    8.3 Using Model Binding【使用模型綁定】
    8.4 Completing the Cart【完成購物車】
    8.5 Submitting Orders【遞交訂單】
    8.6 Summary【概要】

  Chapter 9: SportsStore: Administration
  第9章:體育商店:管理
    9.1 Adding Catalog Management【添加目錄管理】
    9.2 Securing the Administration Features【使管理特性安全】
    9.3 Image Uploads【圖像上載】
    9.4 Summary【概要】

Part 2: ASP.NET MVC 3 in Detail
第2部分:ASP.NET MVC 3細節
  Chapter 10: Overview of MVC Projects
  第10章:MVC項目概覽
    10.1 Working with Visual Studio MVC Projects【與Visual Studio MVC項目一起工作】
    10.2 Debugging MVC Applications【調試MVC應用程序】
    10.3 Project-Wide Dependency Injection【項目范圍上的依賴性注入】
    10.4 Summary【概要】

  Chapter 11: URLs, Routing, and Areas
  第11章:URL、路由及區域
    11.1 Introducing the Routing System【路由系統介紹】
    11.2 Generating Outgoing URLs【生成輸出的URL】
    11.3 Customizing the Routing System【定制路由系統】
    11.4 Working with Areas【對區域進行工作】
    11.5 URL Schema Best Practices【URL模式最佳實踐】
    11.6 Summary【概要】

  Chapter 12: Controllers and Actions
  第12章:控制器與動作
    12.1 Introducing the Controller【控制器介紹】
    12.2 Receiving Input【接收輸入】
    12.3 Producing Output【產生輸出】
    12.4 Summary 【概要】

  Chapter 13: Filters
  第13章:過濾
    13.1 Using Filters【使用過濾器】
    13.2 Summary 【概要】

  Chapter 14: Controller Extensibility
  第14章:控制器擴展性
    14.1 Request Processing Pipeline Components【請求處理管線組件】
    14.2 Creating a Controller Factory【生成一個控制器工廠】
    14.3 Working with the Built-In Controller Factory【與內建的控制器工廠一起工作】
    14.4 Creating a Custom Action Invoker【生成自定義動作請求】
    14.5 Using the Built-In Action Invoker【使用內建的動作請求】
    14.6 Improving Performance with Specialized Controllers【用序列化控制器改善性能】
    14.7 Summary【概要】

  Chapter 15: Views
  第15章:視圖
    15.1 Creating a Custom View Engine【生成自定義的視圖引擎】
    15.2 Working with the Razor Engine【與Razor一起工作】
    15.3 Adding Dynamic Content to a Razor View【將動態內容添加到Razor視圖】
    15.4 Using HTML Helpers【使用HTML輔助器】
    15.5 Using Sections【使用會話】
    15.6 Using Partial Views【使用部分視圖】
    15.7 Using Child Actions【使用子動作】
    15.8 Summary 【概要】

  Chapter 16: Model Templates
  第16章:模型模板
    16.1 Using Templated View Helpers【使用模板化的視圖輔助器】
    16.2 Customizing the Templated View Helper System【自定義模板化的視圖輔助器系統】
    16.3 Understanding the Metadata Provider System【理解元數據提供器系統】
    16.4 Summary【概要】

  Chapter 17: Model Binding
  第17章:模型綁定
    17.1 Understanding Model Binding【理解模型綁定】
    17.2 Using the Default Model Binder【使用默認的模型綁定】
    17.3 Manually Invoking Model Binding【手工請求模型綁定】
    17.4 Using Model Binding to Receive File Uploads【把模型綁定用於接收文件上載】
    17.5 Customizing the Model Binding System【自定義模型綁定系統】
    17.6 Summary【概要】

  Chapter 18: Model Validation
  第18章:模型檢驗
    18.1 Creating the Project【生成項目】
    18.2 Explicitly Validating a Model【明確地檢驗一個模型】
    18.3 Displaying Validation Messages【顯示檢驗消息】
    18.4 Using Alternative Validation Techniques【使用另一種檢驗技術】
    18.5 Performing Client-Side Validation【執行客戶端檢驗】
    18.6 Performing Remote Validation【執行遠程檢驗】
    18.7 Summary【概要】

  Chapter 19: Unobtrusive Ajax
  第19章:非強制Ajax
    19.1 Using MVC Unobtrusive Ajax【使用MVC的非強制Ajax】
    19.2 Setting Ajax Options【設置Ajax選項】
    19.3 Creating Ajax Links【生成Ajax連接】
    19.4 Working with Ajax Callbacks【與Ajax回遞一起工作】
    19.5 Working with JSON【與JSON一起工作】
    19.6 Summary【概要】

  Chapter 20: jQuery
  第20章:jQuery
    20.1 Creating the Project【生成項目】
    20.2 Referencing jQuery【引用jQuery】
    20.3 Writing jQuery Code【編寫jQuery代碼】
    20.4 Basic jQuery Theory【jQuery基本理論】
    20.5 Using jQuery Events【使用jQuery事件】
    20.6 Using jQuery Visual Effects【使用jQuery可視化效果】
    20.7 Using jQuery UI【使用jQuery的UI】
    20.8 Summary【概要】

Part 3: Delivering Successful ASP.NET MVC 3 Projects
第3部分:交付成功的ASP.NET MVC 3項目
  Chapter 21: Security and Vulnerability
  第21章:安全性與脆弱性
    21.1 All Input Can Be Forged【所有輸入都可以偽造】
    21.2 Cross-Site Scripting and HTML Injection【跨網站腳本與HTML注入】
    21.3 Session Hijacking【會話劫機】
    21.4 Cross-Site Request Forgery【跨網站請求偽造】
    21.5 SQL Injection【SQL注入】
    21.6 Using the MVC Framework Securely【安全地使用MVC框架】
    21.7 Summary【概要】

  Chapter 22: Authentication and Authorization
  第22章:認證與授權
    22.1 Using Windows Authentication【使用Windows認證】
    22.2 Using Forms Authentication【使用表單認證】
    22.3 Using Membership, Roles, and Profiles【使用成員、角色、與輪廓】
    22.4 Why You Shouldn’t Use URL-Based Authorization【為什么不應該使用基於URL的認證】
    22.5 Restricting Access Using IP Addresses and Domains【使用IP地址和主域限制訪問】
    22.6 Summary【概要】

  Chapter 23: Deployment
  第23章:部署
    23.1 Preparing an Application for Deployment【進行應用程序部署的准備】
    23.2 Understanding the IIS Fundamentals【理解IIS基礎】
    23.3 Preparing the Server for Deployment【准備部署服務器】
    23.4 Deploying an Application【部署應用程序】
    23.5 Summary【概要】

  Index
  索引


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM