I have a rather large table of mineral/vitamin definitions (44 columns) and every column name but one is correct. I have a column called [Tryptophan/60] in the SQL database table and I need to represent this in my EF DTO Object MineralDefinition:
public class MineralDefinition
{
public int DefinitionId {get;set;}
public string Tryptophan60 {get;set;}
// 43 other minerals/vitamins
}
Unfortunately I cannot change the columns in the database. Is there any way I can remap this single column without having to write out every column? And, come to think of it, how do I remap the field anyway as it has a / in it?