displayname attribute vs display attribute
问题 What is difference between DisplayName attribute and Display attribute in ASP.NET MVC? 回答1: They both give you the same results but the key difference I see is that you cannot specify a ResourceType in DisplayName attribute. For an example in MVC 2, you had to subclass the DisplayName attribute to provide resource via localization. Display attribute (new in MVC3 and .NET4) supports ResourceType overload as an "out of the box" property. 回答2: DisplayName sets the DisplayName in the model