开发者

Tools for auto-generating ASP.NET MVC CRUD UI?

开发者 https://www.devze.com 2022-12-28 19:11 出处:网络
Does anyone know开发者_运维知识库 of any tools for generating ASP.NET MVC CRUD User Interfaces (E.g. the controllers and views for Admin tools), given:

Does anyone know开发者_运维知识库 of any tools for generating ASP.NET MVC CRUD User Interfaces (E.g. the controllers and views for Admin tools), given:

  • A set of model objects.
  • A set of repositories for retrieving those objects.

Thanks


There is a project on codeplex called MVCCrud this will automate repository and controller. Also optionally supports JqGrid (searching, sorting etc). It isnt included in the project but its very simple to add some T4 templates to generate the desired view.

If you just want normal crud functionality this is very very quick. Only downside is the only repository is Linq2Sql, but you can easily add your own using their interface it is prity simple to extend or use parts of.


The Crud Template which are shipped with ASP.NET MVC are based on T4 which is a code generation tool which ships with Visual Studio. This means you can take the templates and customize them based on your taste and make your own... take a look at Scott Hanselman's ninja tips and tricks video's he goes into details here:

http://channel9.msdn.com/posts/matthijs/ASPNET-MVC-2-Ninja-Black-Belt-Tips-by-Scott-Hanselman/


Serenity Platform

Serenity is an open source project aiming to reduce boiler-plate code in your development project. It comes with a T4 based code generator that will produce services and UI for your tables.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号