使用 .net 生成简单的网站 GUI [英] Generate simple web site GUI using .net
问题描述
我有几个超级简单的数据库.基本上它们都由保存跟踪/记录数据等的单个表组成.
I have a couple of super simple databases. Basically they all consist of single tables that saves tracking/logging data etc.
现在我想列出这些数据,但我想找到一个适用于所有数据库中所有不同表的解决方案.所以基本上我正在寻找某种方式/某种模式将解决方案指向数据库,生成代码和 GUI 并发布站点.表可以有大量的行,所以我需要像分页等功能,但除此之外,我正在寻找一个简单的列表作为第一步.我一直在查看 来自 MS 的动态数据 - 这可以工作?其他选择?我真的很喜欢我的网站 ASP.NET MVC ...
Now I want to list this data but I'd like to find a solution that's applicable to all the different tables in all the databses. SO basically I'm looking for some way/some pattern of pointing a solution to a database, generate code and GUI and the publish the site. The tables can have huge amount of rows so I need functionally like paging etc but otherwise a simple list is all I'm looking for as a first step. I've been looking at Dynamic Data from MS - could this work? Other options? I'd really like the web sites to me ASP.NET MVC ...
作为第二个步骤,我还希望能够通过 GUI 更改/添加和删除行中的数据.
As a seconds step I'd also like to have the possibility to change/add and delete data from the rows via the GUI.
推荐答案
考虑使用 ASP.NET MVC 2.它具有广泛的脚手架功能,可以为您自动生成视图,但允许进行大量微调
Consider using ASP.NET MVC 2. It has extensive scaffolding capabilities that can auto-generate the views for you, yet allows a lot of fine tuning
Brad Wilson 在这里解释了脚手架:http://bradwilson.typepad.com/blog/2009/10/aspnet-mvc-2-templates-part-1-introduction.html
Brad Wilson explains scaffolding here: http://bradwilson.typepad.com/blog/2009/10/aspnet-mvc-2-templates-part-1-introduction.html
对于 MVC 2,请参见http://aspnet.codeplex.com/和http://www.asp.net/mvc/download/
For MVC 2, see http://aspnet.codeplex.com/ and http://www.asp.net/mvc/download/
不包括分页,但您可以从 MVCContrib 获得,例如
Paging is not included, but you can get that from MVCContrib, for example
这篇关于使用 .net 生成简单的网站 GUI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!