Entity Framework lazy loading doesn't work from other thread Entity Framework lazy loading doesn't work from other thread multithreading multithreading

Entity Framework lazy loading doesn't work from other thread


Is this by design? Yes; any call to Load, implicit or explicit, will eventually go through the ObjectContext, and ObjectContext is documented to be not thread-safe.

A possible workaround would be to detach the entity from the object context in the worker thread and attach it to an object context in the current thread.