MVC3 - Where to place custom attribute classes
问题 I am delving into custom validation attributes and am curious to know how others structure the projects. Where do you typically store custom attributes? My first thought was to simply create a new folder and be done with it. Any suggestions? 回答1: I use 2 different approaches. Set up a common Class Library to store common validation that will be used on many MVC applications. Then reference this library from your MVC application. You can use http://dataannotationsextensions.org/ to view the