Custom column name display

Aug 26, 2015 at 3: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; }

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

Aug 26, 2015 at 7: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