DbSet table name

c#, entity-framework-4.1

Solution

Try something like this:

string name = (context as IObjectContextAdapter).ObjectContext.CreateObjectSet<MyClass>().EntitySet.Name;

Problem

To get database table name on Entity framework 4.0 I do: ``` ObjectSetInstance.EntitySet.ToString() ``` Is there a way to do this on Entity Framework 4.1?

Original source