MVC 4 custom data annotations read in T4 scaffolding
Can you create custom data annotations for the model that can be read inside the T4 template for the View like property.Scaffold is read? I would like to add data annotation parameters like Scaffold based on which I would build the view. Thank you Johnie Karr I wrote a blog post on the solution I came up with for MVC5. I'm posting it here for anyone who comes along: https://johniekarr.wordpress.com/2015/05/16/mvc-5-t4-templates-and-view-model-property-attributes/ Edit: In your entities, decorate property with custom Attribute namespace CustomViewTemplate.Models { [Table("Person")] public class