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
Looks similar to #7844?
The below code lead to an client eval, and seems it failed to unpack new { [x].PK }.PK.
But it not failed if Remove Take(), or move Select() after Take(), or not select into an annonymous object(if there is only one key needed)
Steps to reproduce
Include a complete code listing (or project/solution) that we can run to reproduce the issue.
Partial code listings, or multiple fragments of code, will slow down our response or cause us to push the issue back to you to provide code to reproduce the issue.
dbug: Microsoft.EntityFrameworkCore.Query[10101]
Compiling query model:
'from <>f__AnonymousType0<int> x in
(from Test001 x in DbSet<Test001>
select new { [x].PK }).Take(__p_0)
select
(from Test001 x1 in DbSet<Test001>
where [x1].GroupByKey == [x].PK
select [x1]).Count()'
warn: Microsoft.EntityFrameworkCore.Query[10102]
Query: '(from Test001 x in DbSet<Test001> select (from Test001 x1 in DbSet<Test001> where [x1].GroupByKey =...' uses a row limiting operation (Skip/Take) without OrderBy which may lead to unpredictable results.
dbug: Microsoft.EntityFrameworkCore.Query[10104]
Optimized query model:
'(from Test001 x in DbSet<Test001>
select
(from Test001 x1 in DbSet<Test001>
where [x1].GroupByKey == new { [x].PK }.PK
select [x1]).Count()).Take(__p_0)'
warn: Microsoft.EntityFrameworkCore.Query[20500]
The LINQ expression 'where ([x1].GroupByKey == new <>f__AnonymousType0`1(PK = [x].PK).PK)' could not be translated and will be evaluated locally.
Further technical details
EF Core version: 3.0.0-preview3.19153.1(also not works in old versions)
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
Operating system:
IDE: (e.g. Visual Studio 2017 15.4)
The text was updated successfully, but these errors were encountered:
Describe what is not working as expected.
Looks similar to #7844?
The below code lead to an client eval, and seems it failed to unpack
new { [x].PK }.PK
.But it not failed if Remove
Take()
, or moveSelect()
afterTake()
, or not select into an annonymous object(if there is only one key needed)Steps to reproduce
Include a complete code listing (or project/solution) that we can run to reproduce the issue.
Partial code listings, or multiple fragments of code, will slow down our response or cause us to push the issue back to you to provide code to reproduce the issue.
->
Further technical details
EF Core version:
3.0.0-preview3.19153.1
(also not works in old versions)Database Provider:
Microsoft.EntityFrameworkCore.SqlServer
Operating system:
IDE: (e.g. Visual Studio 2017 15.4)
The text was updated successfully, but these errors were encountered: