ASP.NET Dynamic Data PRO and CONS

余生颓废 提交于 2019-12-10 01:58:58

问题


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:


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.



来源:https://stackoverflow.com/questions/4874669/asp-net-dynamic-data-pro-and-cons

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!