Simple: How do I get the mapped table name from a DbEntityEntry object? I’m inside a class that extends DbContext. I’ve seen examples for ObjectContext but doesn’t apply to CF.
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As stated in another answer, the table name can be obtained using the IObjectContextAdapter
The above code also tests for proxies. Hope this helps someone else who comes to this link as I assume the original poster solved this a long time ago.