Custom column name display

Aug 26, 2015 at 2:42 PM
I am implementing audit log for my entities so that i know what columns where changed and to what values, it is working very well, just one thing i need is to customize the name of the column name because the i get values like "CustomerID" and i need something more customized.

I have tried the Description attribute but vita does not read that attribute, is there any way i can do this?

ex. Entity Definition
[EntityRef("IsencaoID"), Nullable, Description("Código de Isenção")]
IIsencao Isencao { get; set; }

ex.
registo.EntityInfo.Members.First(c=>c.ValueIndex == 40).ColumnName; (Returns IsencaoID)
or
registo.EntityInfo.Members.First(c=>c.ValueIndex == 40).Description; (Witch returns nothing)

Regards
Coordinator
Aug 26, 2015 at 6:13 PM
I will extend DisplayName attribute support on properties, you will be able to read it from memberInfo.DisplayName property; will be there in the next push