Monday, May 23, 2011

What is MvcScaffolding and why use it?


MvcScaffolding is tool available to ASP.NET MVC developers using Visual Studio that generates customizable controllers and views for any number of entities in your data model. In other words, MvcScaffolding is a way to quickly create an application layout based on data. This means there are less routine tasks that developers need to do, for example, creating your own controllers/views, CRUD methods, and validation, and more time spent on solving business problems.

MvcScaffolding generates the files as plain old .cs and .cshtml code files, with no designer files, so you're free to modify them as you want. You can scaffold controllers, views, repositories, etc... for CRUD operations in an app with a few commands, and have a fully functional application to work with. Combine the power of MvcScaffolding with Entity Framework's Code First feature, and you can start knocking out web apps much faster than before.

http://rachelappel.com/ready-set-scaffold-build-asp.net-mvc-3-applications-quickly-with-mvcscaffolding

Prevent Cross-Site Request Forgery (CSRF) using ASP.NET MVC’s AntiForgeryToken() helper « Steve Sanderson’s blog

Prevent Cross-Site Request Forgery (CSRF) using ASP.NET MVC’s AntiForgeryToken() helper « Steve Sanderson’s blog