什么是自动脚手架?它有什么用? [英] What is automatic scaffolding? How does it help?

查看:186
本文介绍了什么是自动脚手架?它有什么用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是自动脚手架?它是如何帮助???

What is automatic scaffolding?? How does it help???

推荐答案



脚手架指的是动态数据元素,为数据库中的每个表自动生成Web页面。这些自动生成的Web页面为每个表提供创建,读取,更新和删除(CRUD)操作。脚手架由页面模板,实体页面模板,字段页面模板和过滤器模板组成。这些模板使您能够快速构建功能性数据驱动的Web站点。

scaffolding的一个组成部分是将数据库实体表示为公共语言运行时(CLR)类型的数据模型。动态数据使用数据模型中的元数据为Web应用程序创建UI并管理用户输入的更改。

脚手架的好处如下:

创建数据驱动的Web应用程序需要很少或不需要代码。

功能页面是自动生成的,包括数据库CRUD功能,排序和分页。

ASP .NET路由(URL路由)自动处理请求。动态数据从请求URL推断出要使用的模板和表。

数据验证是基于数据库模式构建的。

自动为外部创建数据过滤器键,布尔字段和枚举字段类型。

自定义很容易改变数据字段的外观和行为。


Scaffolding refers to the Dynamic Data elements that automatically generate Web pages for each table in a database. These auto-generated Web pages provide create, read, update and delete (CRUD) operations for each table. Scaffolding consists of page templates, entity page templates, field page templates, and filter templates. These templates enable you to quickly build a functional data-driven Web site.
An integral part of scaffolding is a data model that represents database entities as common language runtime (CLR) types. Dynamic Data uses metadata from the data model to create the UI for the Web application and to manage changes that are entered by the user.
The benefits of scaffolding are following:
Little or no code is required in order to create a data-driven Web application.
Functional pages are generated automatically and include database CRUD capabilities, sorting, and paging.
ASP.NET routing (URL routing) automatically handles requests. Dynamic Data infers the template and the table to use from the request URL.
Data validation is built in, based on the database schema.
Data filters are automatically created for foreign keys, Boolean fields, and enumeration field types.
Customization is easy to change the appearance and behavior of data fields.

参考 - ASP.NET动态数据脚手架 [ ^ ]。



浏览演练:创建新的动态数据网站使用脚手架 [ ^ ]创建一个使用ASP.NET动态数据的基本网站。



学习 ASP.NET动态数据基础架构 [ ^ ]。

Reference - ASP.NET Dynamic Data Scaffolding[^].

Go through Walkthrough: Creating a New Dynamic Data Web Site Using Scaffolding[^] to create a basic Web site that uses ASP.NET Dynamic Data.

Learn ASP.NET Dynamic Data Infrastructure[^].


这篇关于什么是自动脚手架?它有什么用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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