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
Since #10404 is not available now, I'm trying to use DateDiffDay to get it for groupby, but found EF.Functions also not works for groupby. EF.Functions could not be translated and will be evaluated locally when used as key of GroupBy?
If you are seeing an exception, include the full exceptions details (message and stack trace).
None
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.
Microsoft.EntityFrameworkCore.Query Warn The LINQ expression 'GroupBy((((__Functions_0.DateDiffDay(2000/1/2 0:00:00, [d].StartTime) % 7) + 7) % 7), [d])' could not be translated and will be evaluated locally.
Microsoft.EntityFrameworkCore.Database.Command Info Executed DbCommand (67ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [d].[Start_Time], [d].[Delta_Value]
FROM [Comm_Data_Day] AS [d]
ORDER BY ((DATEDIFF(DAY, '2000-01-02T00:00:00.0000000', [d].[Start_Time]) % 7) + 7) % 7
Further technical details
EF Core version: (found in project.csproj or packages.config)2.1.2
Database Provider: (e.g. Microsoft.EntityFrameworkCore.SqlServer) Microsoft.EntityFrameworkCore.SqlServer
Operating system: Win10 x64(1803 17134)
IDE: (e.g. Visual Studio 2017 15.4)VS2017 15.8p5
The text was updated successfully, but these errors were encountered:
Describe what is not working as expected.
Since #10404 is not available now, I'm trying to use
DateDiffDay
to get it for groupby, but foundEF.Functions
also not works for groupby.EF.Functions
could not be translated and will be evaluated locally when used as key of GroupBy?If you are seeing an exception, include the full exceptions details (message and stack trace).
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: (found in project.csproj or packages.config)
2.1.2
Database Provider: (e.g. Microsoft.EntityFrameworkCore.SqlServer)
Microsoft.EntityFrameworkCore.SqlServer
Operating system:
Win10 x64(1803 17134)
IDE: (e.g. Visual Studio 2017 15.4)
VS2017 15.8p5
The text was updated successfully, but these errors were encountered: