I'm having some issues with property names during validation. I've got an entity with a 'LastName' property that automatically gets a
[Display(Name="Last Name", AutoGenerateField=true)] attribute, which is great. My UI (Telerik) grid view automatically picks up on this attribute and displays the specified name when bound to the property. I guess I'm surprised that the verification messages don't use this by default (it still just shows "LastName" by default). Is there a reason? Do I need to switch something on to allow this?
Next issue: I know the documentation shows the order in which it will try to determine the property name to display, so to try to overcome the first issue, I've set the engine's 'PropertyNameToDisplayNameTranslator' property to a custom method in which I try to discover the 'DisplayAttribute' mentioned above and use the Name value specified. However, my method never gets called. I have no idea why. I set this property as soon as I create my entity manager and notice that this property is initially null. When I get into one of my entities, its verifier engine still seems to have a valid reference to my method, but it doesn't seem to matter - it just never gets called. Am I missing something?
Of course, I would love to just have it use the Display attribute by default, and if there is no current implementation to allow it, consider this my vote for a future feature.
Thanks,
Terry