You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 17, 2020. It is now read-only.
When I call the following code, SubCategories are all NULL.
db
.Set<Category>()
**.Cacheable(CacheExpirationMode.Absolute, TimeSpan.FromDays(7))**
**.Include(x => x.SubCategories)**
.ToListAsync(token);
If I move the include before the Cacheable(), then it works fine.
db
.Set<Category>()
**.Include(x => x.SubCategories)**
**.Cacheable(CacheExpirationMode.Absolute, TimeSpan.FromDays(7))**
.ToListAsync(token);
I assume it's related to #39. It would convenient if we could call the include on the EFCachedDbSet. This way we can keep the Cache mgt code within one class (the DbContext)
The text was updated successfully, but these errors were encountered:
Summary of the issue
Calling
Include
on anEFCachedDbSet
does not include the property as expected.Environment
Example code/Steps to reproduce:
I'm using the following entity extracted from my MSSQL DB.
In EF Core, the binding is created as followed:
Outputs
When I call the following code,
SubCategories
are allNULL
.If I move the include before the
Cacheable()
, then it works fine.I assume it's related to #39. It would convenient if we could call the
include
on theEFCachedDbSet
. This way we can keep the Cache mgt code within one class (the DbContext)The text was updated successfully, but these errors were encountered: