ASP.NET MVC 3 Scaffolding Quick Start
page 1 of 3
Published: 26 Apr 2011
Abstract
Using the latest ASP.NET MVC 3 tools, it's very quick to go from simple C# classes to working data management screens with a generated backing database. This article walks through the basics of getting started with this approach.
by Steven Smith
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 23514/ 33

Introduction

One of the new features in ASP.NET MVC 3 is its scaffolding feature, which basically lets you very quickly produce data entry controllers and views based on a particular model, even if you don't yet have a database in place.  This can let you very quickly produce a proof-of-concept, or iterate through some design options, without the need to go through a big process of setting up a database, tables, stored procedures, etc. just to show the customer how the UI might work with a given set of data.  To use this feature, you'll want to get the latest ASP.NET MVC 3 tools.


View Entire Article

User Comments

Title: Head   
Name: Rashmi
Date: 2011-05-16 12:02:42 AM
Comment:
this is a great article. Will help me in my project.
Title: insert problem   
Name: Eile
Date: 2011-05-13 7:39:07 PM
Comment:
if i don't want to insert the publication Date what should i do? Or set the publication Date to Datatime.now()

it doesn't looks it will work if i delete publication date code in Create.cshtml page. There should be an opinion on what you want field that you want insert and what you dont
Title: One model per controller?   
Name: Sam
Date: 2011-05-12 8:57:00 PM
Comment:
Who uses only one model per controller? I tried it and it doesn't work in practice. I have a model for every unique form which typically results in an add model, edit model, view model, listing model and search model (for the listing search form). This tooling would be useful if it prompted for the model class to use for each of operation the controller 'scaffolds' for you.
Title: Thanks   
Name: Me
Date: 2011-05-12 8:31:09 AM
Comment:
Short and sweet. Nice.
Title: Very good article   
Name: Kaka
Date: 2011-05-12 5:07:26 AM
Comment:
nice






Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2017 ASPAlliance.com  |  Page Processed at 2017-01-22 3:24:37 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search