Blazor with efcore proxies crash. #18076
Labels
area-blazor
Includes: Blazor, Razor Components
✔️ Resolution: Answered
Resolved because the question asked by the original author has been answered.
Status: Resolved
Milestone
Related to #10448
Minimal reproduceable project based on blazor template at: https://github.com/alextech/sample_use_proxy_blazor
Here, the issue is using proxies in efcore with blazor. If an object is passed to a sub-component that is accessing entity property sometime after the page has been loaded, context may have already been disposed.
Lazy Loading Proxies are needed to avoid cartesian explosion in master/detail style user interfaces, where each entity in main list has its own sublist of owned entities, that in turn, have their own joins.
The text was updated successfully, but these errors were encountered: