Query: Expecting client eval warnings on Last and LastOrDefault query extensions #6929
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-bug
Milestone
Steps to reproduce
A simple Last or LastOrDefault query.
db.MyEntities.LastOrDefault();
I'm using the SQL Server provider.
Provider is configured to throw on client eval.
The issue
Actual query against database is not filtered:
I was seeing this in the ILoggerProvider logging and then verified in SQL Profiler:
SELECT [s].[Id], [s].[Name]
FROM [Samurais] AS [s]
Therefore I can only assume the full set is returned and the Last evaluation is happening in memory.
I can see that the [throw on client eval] config is working because an Average method does cause an exception to throw.
No exception thrown for Last or LastOrDefault,
system
EF Core version: 1.1.0-preview1-final
Operating system: windows 10
Visual Studio version: VS2015
The text was updated successfully, but these errors were encountered: