'.NET Core 6 & Entity Framework Core 6 : DynamicProxy2 get_LazyLoader error NotImplementedException

I'm getting this error message when attempting a Linq query with a number of includes.

Was working in .NET 5; breaking after an upgrade to .NET 6.

System.NotImplementedException: This is a DynamicProxy2 error: The interceptor attempted to 'Proceed' for method 'Microsoft.EntityFrameworkCore.Infrastructure.ILazyLoader get_LazyLoader()' which has no target

Any help appreciated



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source