I need to define EF POCO proxies; MSDN gives some hints based on ObjectContext.GetObjectType(type.GetType())
However, I would really like to do this without an EF link. For example, with NHibernate, I can check if the object implements the marker interface using the name (as a string) "NHibernate.Proxy.INHibernateProxy" .
Is there something similar in the EF POCO proxy? For example, can I rely on them being in the System.Data.Entity.DynamicProxies. namespace System.Data.Entity.DynamicProxies. , or is it fragile?
Taking a look inside the reflector, he simply checks the assembly for internally tracked assemblies, which is problematic for me.
source share