到底什么是动态数据?我在 msdn 上的ASP.NET 概述中看到了该术语。是不是我们在处理数据时一直使用但没有真正提到的东西?
我已经构建了一些 Web 应用程序,但从未遇到过这个术语。这是应该使用或考虑的东西吗?
更新:我想我不太确定它的用途。我以前在使用 LINQ to SQL 或实体框架时从未遇到过问题。是什么让使用动态数据值得?它只是一个模式吗?
What exactly is dynamic data? I saw the term in the ASP.NET Overview on msdn. Is it something that we use all the time thats not really mentioned when working with data?
I've built a few web applications already and never came across this term. Is it something that should be used or maybe considered?
UPDATE: I guess I'm not really sure what it's for. I've never had a problem doing LINQ to SQL or Entity Framework before. What makes using Dynamic Data worth it? Is it simply a pattern?
发布评论
评论(3)
动态数据是 VS 2008 中的一个新项目类型。模板可帮助更快地编写代码。
我看到它的使用的两个重要原因:
很快,一路上做很多事
修改前端可能不会
需要。
简单的。
现在,它可以进行很大的修改。查看这些链接,了解其他人在这方面所做的一些工作。
http://aspnet.codeplex.com/Wiki/View.aspx?title =Dynamic%20Data
Matt Berseth - http://mattberseth.com/blog/dynamic_data/
斯蒂芬·诺顿 - http:// /csharpbits.notaclue.net/
http://weblogs.asp.net/craigshoemaker/archive/tags/Dynamic+Data/default.aspx
http://blogs.msdn.com/rickandy/archive/2009/01/08/dynamic-data-faq.aspx
快进到今天:
作为MVC 已经成熟,他们引入了动态数据中的许多想法。脚手架、模板等...可帮助您快速启动和运行,但也能够更轻松地进行修改,并且专为许多其他所需功能而设计。
如今,动态数据适合什么地方,尤其是考虑到灯开关的情况?很好的问题,我目前唯一的答案是它仍然适合最初提到的两个项目,但随着 MVC 的出现,具有这些功能以及附加功能和灯光开关,它将看到很少的使用。
Dynamic Data was a new project type in VS 2008. It used scaffolding & templates to help code faster.
Two big reasons I saw for its usage:
quickly where doing much on the way
of modifying the front-end may not be
needed.
simple.
Now, it can be modified very heavily. Check out these links for some work others have done on this.
http://aspnet.codeplex.com/Wiki/View.aspx?title=Dynamic%20Data
Matt Berseth - http://mattberseth.com/blog/dynamic_data/
Stephen Naughton - http://csharpbits.notaclue.net/
http://weblogs.asp.net/craigshoemaker/archive/tags/Dynamic+Data/default.aspx
http://blogs.msdn.com/rickandy/archive/2009/01/08/dynamic-data-faq.aspx
Fast Forward to Today:
As MVC has matured they have introduced many of the ideas that were in Dynamic Data. Scaffolding, templates, etc... to help one quickly get up and running BUT also have the ability to modify more easily and is designed for many other desirable features.
Where does Dynamic Data fit today, especially with Light Switch thrown into the mix? Great question and my only answer at this point is it still fits for the two items originally mentioned but with the advent of MVC having these abilities WITH added capabilities and Light Switch it's going to see minimal usage.
您链接到的页面有一个指向 ASP.NET 动态数据概述。该页面上有您想要解释的内容吗?
The page you linked to has a link to the ASP.NET Dynamic Data Overview. Is there something on that page you would like explained?
动态数据是一种使用数据库架构自动编写 CRUD 数据逻辑的方法。
查看此演练,让您快速了解一下。
这不是我使用的东西,但我可以看到它在真正快速的开发场景中的优点。我不知道它是否能经受住时间的考验,或者被证明是有用的或可维护的。
Dynamic Data is a way to have your CRUD data logic written for you automatically using the Database Schema.
Take a look at this walkthrough to give you a quick jist.
It isn't something I use, but I can see where it has merit in a really rapid development scenario. I don't know if it will stand the test of time or prove useful or maintainable.