生成使用.NET简单的网站界面 [英] 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.
现在我想列出这个数据,但我想找到一个解决方案,它适用于所有的databses所有不同的表。所以基本上我正在寻找一些方法/指向解决数据库的一些模式,产生code和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
布拉德·威尔逊解释说这里棚架: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.$c$cplex.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简单的网站界面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!