Search code examples
entity-frameworkentity-framework-ctp5

entity framework ctp5 get unproxied type


I'm working with EF CTP5.

How can I get the unproxied type name of an entity loaded using EF.

Currently I get the proxied type.

Thanks, Ben


Solution

  • var unproxiedName = ObjectContext.GetObjectType(someEntity.GetType()).Name;