My experiences with ASP.NET Dynamic Data
Posted by Martyn at 3/23/2009 2:47:59 PM
Tags: ASP.NET | DynamicData
Not long ago I had no idea what the point of ASP.NET Dynamic Data was. I simply could not 'grok' it, until very recently when I tried using it for a client's CMS.
Basically, Dynamic Data turned this:
Into this:
Using only three lines of code in the Global.asax.cs:
MetaModel model = new MetaModel(); model.RegisterContext(typeof(BlogModel),
new ContextConfiguration() { ScaffoldAllTables = true });
The site that has been generated for me lets my edit all my tables, filter by foreign keys, add new rows, view related rows, and more. All from three lines of code. Absolutely incredible.