Custom ASP.Net MVC 2 ModelMetadataProvider for using custom view model attributes
- by SeanMcAlinden
There are a number of ways of implementing a pattern for using custom view model attributes, the following is similar to something I’m using at work which works pretty well. The classes I’m going to create are really simple: 1. Abstract base attribute 2. Custom ModelMetadata provider which will derive from the…