NHaml T4 templates for CRUD?
I want to ask if anyone has or has seen T4 templates for NHaml that are the same as the default T4 CRUD (List, Create etc) templates from MVC 2.0?开发者_开发百科
This is very good introduction for Asp.net mvc 3,Nhaml,T4 http://www.b-fil.com/blog/2010/10/17/aspnet-mvc3-ef-code-first-razor-sample-project/
The closest I have seen has this link but not for mvc:
Can NHaml be used as a general purpose template engine? (outside of MVC)
There doesn't seem to be standard NHaml T4 templates for data access.
I have not but I am sure you could easily write them.
http://www.hanselman.com/blog/T4TextTemplateTransformationToolkitCodeGenerationBestKeptVisualStudioSecret.aspx
精彩评论