且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

定义脚手架。 (相对于动态数据和ASP.NET MVC)

更新时间:2023-02-25 21:50:22

这意味着,动态数据框架将自动生成基于在数据模型中的表名了一套路线(如一个LINQ to SQL数据上下文)和predefined设置操作(基本CRUD)的。当你如访问 http://example.com/Products/Details.aspx ,其中产品是在你的数据模型中的表的名称,框架会自动生成一个详细信息页面显示产品的详细信息。所生成的页可以通过基于例如命名提供根据一个约定命名局部视图进行定制在数据模型中的列。

It means that the Dynamic Data framework will auto-generate a set of routes based on the table names in a data model (e.g. a Linq to SQL data context), and a predefined set of operations (essentially CRUD). When you e.g. visit http://example.com/Products/Details.aspx, where "Products" is the name of a table in your data model, the framework will auto-generate a details page for displaying product details. The generated pages can be customized by providing partial views named according to a convention based on the naming of e.g. columns in the data model.