Retrive column name at Runtime
Posted: Mon 12 Mar 2012 23:28
Hi.
In Model First environment, there is any way to know at runtime what Table/column a property is mapped to?
For example, if the property User.Name is mapped to "TBL_USER"."PROP_NAME" on the DB, how can I have this information at runtime?
I need that because I'd like to write a log of every change a user will do in any property of any table.
But I'd like to use the table/column names instead of Classes/Properties names.
Someone can help me?
Thank you in advance.
In Model First environment, there is any way to know at runtime what Table/column a property is mapped to?
For example, if the property User.Name is mapped to "TBL_USER"."PROP_NAME" on the DB, how can I have this information at runtime?
I need that because I'd like to write a log of every change a user will do in any property of any table.
But I'd like to use the table/column names instead of Classes/Properties names.
Someone can help me?
Thank you in advance.