tailieunhanh - Lập trình .net 4.0 và visual studio 2010 part 44

MVC là của Microsoft thực hiện một thử và thử nghiệm mô hình kiến trúc. MVC tách ra giao diện người dùng, logic của một ứng dụng, và dữ liệu, và làm cho nó dễ dàng hơn để kiểm tra, gia hạn, và duy trì. MVC là viết tắt của Model, View, Controller. Nếu bạn đã bản đồ các điều khoản cho một truyền thống | CHAPTER 13 MVC Availability Framework Onward MVC is Microsoft s implementation of a tried and tested architectural pattern. MVC separates out an application s user interface logic and data and makes it easier to test extend and maintain. MVC stands for Model View Controller. If you were to map these terms to a traditional database application and they don t map exactly you might consider the following Model would be the database. View would be the pages and controls. Controller would manage the interaction between the pages controls view and the database model . So is MVC a replacement for web forms that you know and mostly love Although some people will argue that MVC will replace the web forms model I don t think this is true or is Microsoft s intention. Both web forms and MVC have their own advantages and judging by the enhancements made to in this release web forms are still going to be around for the foreseeable future. So at the moment MVC is another way not the way of creating web applications on the Microsoft .NET platform. I would argue that MVC is a bad choice for some types of applications. If you are designing an application with a rich and complex user interface development with web forms is much easier with inbuilt handling of state and events. Of course you could develop such an application with MVC but I expect it would take longer. MVC History The MVC design pattern has been around since 1979 when it was first described by Trygve Reenskaug who was working on a language called Smalltalk at Xerox. Trygve called his idea Thing Model View Editor which I think we can all agree really wasn t as catchy as MVC. Although Trygve s vision was quite different from s implementation of MVC most people agree that Trygve s vision kicked everything off. You can read Trygve s original idea at http trygver 1979 mvc-1 . 289 CHAPTER 13 MVC So Why MVC MVC is about .

crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.