Create MetadataType classes
Posted: Tue 10 Jul 2012 18:20
Currently I am using MVC with a E.F model generated by DevArt using Entity Developer, one of the things I cannot see how to do easily is add DisplayName() attributes to classes.
I know in MVC you can provide a [MetadataType] to point to a different "holder class" which holds meta data details. I was just wondering if theres a "simple" way to do this in DevArt or if it's
1) Autocreate all partial classes then manually populate these classes by hand with the MetadataType tag and elemnts.
2) Edit the template and get it to do the heavy lifting.
Any help would be much appreciated.
I know in MVC you can provide a [MetadataType] to point to a different "holder class" which holds meta data details. I was just wondering if theres a "simple" way to do this in DevArt or if it's
1) Autocreate all partial classes then manually populate these classes by hand with the MetadataType tag and elemnts.
2) Edit the template and get it to do the heavy lifting.
Any help would be much appreciated.