Posted on: 4/3/2014 12:36:40 AM | Views : 470

Is there a way I can add a custom attribute on a DTO object property and return that value?
Example: 
public class TableHistory { [DBColumMapping("History_Id")] public Guid HistoryId { get; set; } public TableHistory() { HistoryId = default(Guid); } } So basically when I do a sort on column History Id, it will pull back History_Id so I can sort via dynamic linq on that column etc. I want to pass in TableHistory.HistoryId and then return the string "History_Id" which is the table column name in my database table. 

Go to the complete details ...