I have a database table which records all field changes in all database tables which are mapped to Entity Framework Entities (via SQL Server triggers).
I am building a service which outputs these field changes to the client.
However, the client needs the EF-Entity object and property names and not the database table and field names.
For example, if these database fields change:
Table Field WhenChanged
------------ ------------ ---------- ...
Calendar Event 2010-01-05 15:00:00
Calendar Place 2010-01-05 15:22:00
I need to report that these entity properties changed:
Entity Property WhenChanged
------------ ------------ ---------- ...
Appointment EventName 2010-01-05 15:00:00
Appointment Place 2010-01-05 15:00:00
Some names are the same, some are not: the mapping is defined the .edmx file.
Are there any EF methods I can call or tools I could use which would do this backward tablename-to-objectname and fieldname-to-propertyname translation without actually instantiating the objects?