我有这样的东西
var result = dbContext.CompanyProducts.Include(x => x.Product).Asnotracking().Where(//some condtions).GroupBy(x => x.id).ToList()
var p = result.First().Product
但我明白了
"Error generated for warning 'microsoft.EntityFrameworkCore.Infrastructure.DetachedLazyLoadingWarning:
An attempt was made to lazy-load navigation property 'Product' on detached entity of type 'CompanyProductProxy'.
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'."}
为什么我使用include时为什么认为它是延迟加载?