Denis Bubnov Denis Bubnov - 3 months ago 11
C# Question

Entity Framework DynamicProxies length name of class

I have Repository and try get object from base. But, type of class:


System.Data.Entity.DynamicProxies.FoundationInformatio_2B2257689287A8D593FBF2013945969F4E7612CD66850A8D4A6D6CAAC5BFF101


My class have type of: FoundationInformation

I need full name. Why length name of class is 20 characters in DynamicProxies? How get full name of class?

Answer

I decided:

ObjectContext.GetObjectType(obj.GetType());