Closed nkglasser closed 4 years ago
I had the same error. In order to make it working, I made the choice to completely disable the use of proxies with EF:
public MyDbContext()
: base("name=MyDbContext")
{
this.Configuration.ProxyCreationEnabled = false;
}
I work with disconnected entities (ASP.Net MVC) so proxies are not useful for me.
Hello all,
The fix for this issue has been released in v3.1.1,
If you believe we still have the issue, just let us known.
Best Regards,
Jon
While trying to rebuild a graph, my entity provided a relation to a lazy-loaded proxy.
In the EntityManager.cs file, there are multiple references of getting the type from an object. My solution was adding the ObjectContext.GetObjectType() function on the type provided (or the type of the object provided).
For example on line 75: