ASP.NET Dynamic Data PRO and CONS

1.2k views Asked by At

I heard about ASP.NET Dynamic Data in ASP.NET 4.

I would like to know if you have implemented in real scenario web application and your opinions, specially in terms of customization.

Some questions:

  • Can I Use custom logic to validate Fields?
  • Is it possible add logic when User press for example a DELETE button for a specific Table?

As at a first look, it seems very easy build Scaffolding but any Cons?

Thanks for your time! Regards

1

There are 1 answers

1
Jakob Gade On BEST ANSWER

I've mostly used Dynamic Data to create "developer only" back-end admin tools, where I need to access the database directly. For that purpose it's very convenient and extremely fast to use.

MSDN has several articles on customizing Dynamic Data: ASP.NET Dynamic Data Layer Customization: Validating Data Fields. I'm sure it's flexible enough to meet your requirements.

As for pros and cons, it really depends on what you're building. Implementing custom designs and functionality can end up taking just as long as it would've implementing the project from scratch (regardless of what scaffolding framework you use). So if your project is a basic data entry app, go with Dynamic Data. If it's customer-facing site, I think you're probably better off using ASP.NET Webforms or MVC. But that said, DD is still very handy for just accessing the data from a browser.