Let's say we have first-names stored in all lower-case in a column in the Person
table in the database, like: "john", "jane", "mary", etc.
When I load the first names into the Person
entity (for example, to fulfill a query), I want to transform the first names so that the first letter is capitalized. So "John", "Jane" etc.
How can I do that using C#/Entity Framework. We also use Auto-Mapper.
I guess in general, how would I transform data from a table's record before loading the record into an entity?