Friday, 15 November 2013

MVC for Beginners


Advantages of MVC
®  Rich controls and tools
®  Postbacks
®  Event driven web development
®  Viewstate
®  Less control over the HTML
®  Hard to test

®  Rapid development

Architecture


What is MVC?
Architecture Analysis:
      we make strategic decisions related to the business needs of the system we are building . Considering security , performance , maintenance , reliability, integration test applications , ease of use and convenience of the system.
Problems we face:
      Frequent change of user interface
      Different presentation of the same data
      Work on different devices
      Facilitate modular testing system
How to solve them:
      Independence of the individual modules
      Reusability of modules
      Good structural organization of the system
Model-View-Controller
  • Controller - responsible for handling all user input
  • Model - represents the logic of the application
  • View - the visual representation of the model
Model
  • The model should contain all of the application business logic, validation logic, and database access logic.
  • ASP.NET MVC is compatible with any data access technology (for example LINQ to SQL)
  • All .edmx files, .dbml files etc. are located in the Models folder. 
For more information refer below video:


No comments:

Post a Comment