Wednesday, July 15, 2009

Naked Objects & Scaffolding

One of the recent DZone posts provided me with a nice introduction to the Naked Objects pattern. This pattern proclaims several benefits, the following two of which are most appealing to me:
  1. The View and Controller are generated - relieving the pain for simple CRUD pages
  2. No repeated validation of the UI - often gets missed in one of the layers causing unexpected errors

This led me to look into some of the recent scaffolding features in VS 2008 / .NET 3.5. ASP.NET Dynamic Data makes use of URL routing to match requests to the appropriate table and template view with some flexibility to customise the view and restrict the data access levels. Hoping to trial this out on an upcoming small project of which the main purpose is to provide basic CRUD functionality to a SQL Server 2005 db.

No comments: