定义脚手架。 (相对于动态数据和ASP.NET MVC) [英] Define Scaffolding. (with respect to Dynamic Data and ASP.NET MVC)

查看:191
本文介绍了定义脚手架。 (相对于动态数据和ASP.NET MVC)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个关于如何实现和定制脚手架与动态数据和ASP.NET MVC的大量信息。在这种情况下使用时,到底是什么脚手架的定义是什么?

There is a lot of information about how to implement and customize scaffolding with Dynamic Data and ASP.NET MVC. What exactly is the definition of scaffolding when used in this context?

推荐答案

这意味着,动态数据框架将自动生成基于在数据模型中的表名了一套路线(如一个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.

这篇关于定义脚手架。 (相对于动态数据和ASP.NET MVC)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆