toucan icon indicating copy to clipboard operation
toucan copied to clipboard

An unhandled exception

Open hmuhdkamran opened this issue 5 years ago • 0 comments

The engine is generating an issue while listing users in admin section, which is InvalidOperationException: Error generated for warning 'Microsoft.EntityFrameworkCore.Infrastructure.DetachedLazyLoadingWarning: An attempt was made to lazy-load navigation property 'Roles' on detached entity of type 'UserProxy'. Lazy-loading is not supported for detached entities or entities that are loaded with 'AsNoTracking()'.'. This exception can be suppressed or logged by passing event ID 'CoreEventId.DetachedLazyLoadingWarning' to the 'ConfigureWarnings' method in 'DbContext.OnConfiguring' or 'AddDbContext'.

hmuhdkamran avatar Sep 27 '18 03:09 hmuhdkamran