从数据库生成 ASP.NET UserControl

发布于 2024-09-14 01:11:38 字数 138 浏览 1 评论 0原文

是否有任何现有软件可以从数据库表生成用户控件?

例如,我的表包含 3 个字段:姓名、姓氏、年龄。

该软件生成一个用户控件,其中有 3 个标签和带有验证和提交按钮的文本框以及用于显示信息的网格视图等...

谢谢大家。

Is there any existing software for generating a UserControl from a table of a database?

For example, my table contain 3 fields : name , last name , age.

The software generates a user control that has 3 labels and textboxes with validation and submit button and a gridview for displaying information , etc...

Thanks all.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

抚你发端 2024-09-21 01:11:38

您可能需要查看动态数据。它是 Microsoft 开发的一个 ASP.NET 框架,可基于 Linq to SQL 或 Entity Framework 对象自动生成常见的 UI 元素(很容易从像您提到的那样的简单表生成)。

You might want to look into Dynamic Data. It's an ASP.NET framework developed by Microsoft that automatically generates common UI elements based on Linq to SQL or Entity Framework objects (which are trivially easy to generate from a simple table like the one you mention.)

牵强ㄟ 2024-09-21 01:11:38

你所描述的听起来很像用户界面“脚手架”。查看以下文章和相关问题:

ASP.NET 脚手架/模板 CRUD 解决方案< /a>
动态数据

What you describe sounds an awful lot like UI "scaffolding". Take a look at the following article and related question:

ASP.NET Scaffolding/Templating CRUD Solutions
Dynamic Data

一花一树开 2024-09-21 01:11:38

这是又一个能够搭建脚手架的 O/R 映射器(从数据库生成 UI):
http://www.subsonicproject.com/

Here's one more O/R mapper capable of scaffolding (generating UI from database):
http://www.subsonicproject.com/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文