Closed santubangalore closed 5 years ago
Hopefully your this.Query()
returns an IQueryable
. It should be q = q.Cacheable(debugInfo);
instead of q.Cacheable(debugInfo);
alone, to chain LINQ commands correctly or just try:
return await (from c in this.Query()
where c.Buid == buid
orderby c.Buid
select c).Cacheable().ToListAsync();
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related problems.
Summary of the issue
If I remove the q.Cacheable(debuginfo) line, the error vanishes. The application is running without any issues without this line. When we include this line, the error starts.
Environment
Example code/Steps to reproduce:
Output: