is there any way to retrieve mapping table name for an Entity in Entity-framework in program? I know you can use .ToTraceString() to get the command text and then extract the table name, but ToTraceString() method is very slow. is there any other way like using ObjectContext.MetadataWorkspace? Thanks
views:
889answers:
3
A:
You can use <dataContext>.<EntityName>.CommandText property to get the name of the Entity. Maybe that helps...
Andreas
2009-02-25 16:56:56
Nope, you will only get the ObjectQuery object name this way.
Jader Dias
2009-10-26 19:37:02