{"id":65,"date":"2014-07-30T06:58:58","date_gmt":"2014-07-30T06:58:58","guid":{"rendered":"http:\/\/mairwa.com\/wordpress\/?p=65"},"modified":"2014-07-30T06:58:58","modified_gmt":"2014-07-30T06:58:58","slug":"mvc-scenario-based-discussion","status":"publish","type":"post","link":"http:\/\/mairwa.com\/wordpress\/?p=65","title":{"rendered":"Mvc Scenario based discussion"},"content":{"rendered":"<p>MVC&#8211;<\/p>\n<p><strong>1)definition:<\/strong><\/p>\n<p>it is framework that splits an application&#8217;s implementation logic into three component roles:<\/p>\n<p>&#8211;Model-&gt;work as business logic and storage mechanism to store the data. Entity framework work in this component.<\/p>\n<p>view -&gt;it is user interface logic to which user direct interact in this component. Asp. Net and Razor use in view component.<\/p>\n<p>controller-&gt;it is handle the request from view and update the model that result&#8217;s in changes of model&#8217;s state.<a href=\"https:\/\/mairwa1.files.wordpress.com\/2014\/07\/01be4-1.jpg\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/mairwa1.files.wordpress.com\/2014\/07\/01be4-1.jpg\" border=\"0\" \/><\/a><\/p>\n<p>The browser send request to IIS,it searches the routs that define in MVC application and passes the request to controller. Controller is handle request and update or insert the data to model, model is revert back to controller and then controller rendered to view whatever request from model.at last, rendered data response passing to browser through IIS.<\/p>\n<p><b>MVC2 Features<\/b><\/p>\n<p>1) Attribute based model validation on both client and server.<\/p>\n<p>2) Strongly typed helper classes<\/p>\n<p>3) Asynchronous controller support.<\/p>\n<p><b>MVC3 Features<\/b><\/p>\n<p>1) Razor view engine<\/p>\n<p>2) introduce \u00a0on action filters and flexibility with support for dependency resolution.<\/p>\n<p>3)support of jquery,validation in client side and JSON binding.<\/p>\n<p>4)use of nuget package which download support new or update package.<\/p>\n<p><b>MVC4 feature<\/b><\/p>\n<p>1)\u00a0\u00a0\u00a0\u00a0\u00a0 introduce of webApi.<\/p>\n<p>2)\u00a0\u00a0\u00a0\u00a0\u00a0 Mobile project template using jquery mobile<\/p>\n<p>3)\u00a0\u00a0\u00a0\u00a0\u00a0 Bundling and Minification.<\/p>\n<p>4)\u00a0\u00a0\u00a0\u00a0\u00a0 Support of asynchronous controller<\/p>\n<p><b>Advantage of MVC.<\/b><\/p>\n<p>1) separation of concerns between UI,Model and controller(Business logic)<\/p>\n<p>2) Easy UNIT Test<\/p>\n<p>3) Multiple view which can point to same model.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">MVC&#8211; 1)definition: it is framework that splits an application&#8217;s implementation logic into three component roles: &#8211;Model-&gt;work as business logic and storage mechanism to store the data. Entity framework work in this component. view -&gt;it is user interface logic to which user direct interact in this component. Asp. Net and Razor use in view component. controller-&gt;it is handle the request from&hellip; <a href=\"http:\/\/mairwa.com\/wordpress\/?p=65\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,10],"tags":[],"class_list":["post-65","post","type-post","status-publish","format-standard","hentry","category-c-vb","category-mvc","xfolkentry"],"_links":{"self":[{"href":"http:\/\/mairwa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/65","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/mairwa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/mairwa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/mairwa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/mairwa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=65"}],"version-history":[{"count":0,"href":"http:\/\/mairwa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/65\/revisions"}],"wp:attachment":[{"href":"http:\/\/mairwa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=65"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/mairwa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=65"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/mairwa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=65"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}