Is there a way to dynamically set data according to some values ββin the database?
My requirement is this:
Display(Name="DispName")] public string DName{get;set;}
Instead of hardcoding Name = "DispName" to display the DataAnnotation, I want to get some value from the database and put the int attribute Name. as:
[Display(Name=SomeValueFromDB)] public string DName{get;set;}
This should also be done using the t4 template.
Is there any way to do this?
Hello,
Sujit
source share