Quickest way to get Scaffold code created with C#/ASP.NET

一曲冷凌霜 提交于 2019-12-20 09:38:47

问题


At the start of any project, once you've got your object model there then comes a period of tedium as you crank out the skeleton code required.

Are there any tools that will help me with this task (including unit test skeletons if possible), a bit like the scaffolding feature in Rails?

Thanks.


回答1:


It really depends on the framework stack that you're using:

  • Scaffolding for Monorail + ActiveRecord
  • ASP.NET MVC + Linq to SQL
  • Web forms + dynamic data
  • ASP.NET MVC + Subsonic

Other that than, you could always code your own "scaffolding" using CodeSmith or MyGeneration

Also see this related question



来源:https://stackoverflow.com/questions/377538/quickest-way-to-get-scaffold-code-created-with-c-asp-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!