How i can get the table name, from a entity object telerik data access ?
EntitiesModel.MyObject.GetTableName() ?
thanks
Olivier
3 Answers, 1 is accepted
0
Kristian Nikolov
Telerik team
answered on 20 Jan 2015, 09:44 AM
Hi Olivier,
You can use an instance of your context class (the one deriving from OpenAccessContext) to access the metadata for your model and retrieve the name of the table for a certain persistent type. Consider the following example illustrating how to retrieve the name of the table responsible for the Car persistent type: