views:

68

answers:

1

I'm running VS2010, IIS7 w/ SQL Server 2008; programming a web application in C#.

So, I've got my database with all relationships carefully mapped; it has about 25 tables with 6 different schemas (e.g. [Account], [Customer], [Product], [Category], [Vendor], etc).

What tools, methods, and architectures are commonly used to quickly go from database to CRUD?

A: 

Are you using ASP.NET MVC? It provides some scaffolding to create a CRUD interface. You still have to do some of the wiring, but it gets you more than halfway there.

RedFilter
Sure, why not? With this project I am open to doing things in ways I haven't done before. I'm watching Scott Hanselman's video on it now.
David Murdoch
Hrm, are you talking about creating a new "Controller" which allows you to select if you want it to create the the CRUD methods?
David Murdoch
Yes, that is it. When you create a controller, you can tell it to *Add action methods for Create, Update, Delete, and Details scenarios*. Once that is done, you can right-click in each action to create its view, telling it what Model object to use as the data type, and which CRUD action that view is for. At that point, most of the HTML coding is done for you, and some of the controller code as well.
RedFilter
Eh. I'm scrapping the MCV route for now. I just don't have time to learn it at the moment.
David Murdoch
You might be interested in this: http://www.screencast.com/users/RPawson/folders/MVC/media/1624e6e1-0586-4f7c-97e0-ad56868fe24e
RedFilter