-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Queryable projection faults when assigning default values #27659
Comments
Duplicate of #24075 Issue is that the literal representation of default of Guid in SqlServer gets sent back as string so when we try to read Guid it throws above exception. |
I see - sorry for the dupe! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
EF Core version:
6.0.3
Database provider:
Microsoft.EntityFrameworkCore.SqlServer
Target framework: (e.g. .NET 5.0)
.NET 6.0.3
Operating system:
Windows
IDE: (e.g. Visual Studio 2019 16.3)
Vs2022 17.1.1
Hello,
I have this (rather simple) entity:
I'm running some
.Where()
filters, then a group by and then a projection for the groupby. Here's some sample code to demonstarate:selectOnly
andgroupBy
worksgroupByWithDefault
does not:The same error happens here:
And here:
Is this intentional because this seems like a bug - hence this report.
Why i'm using default here? Well for both clarity and intellisense.
The text was updated successfully, but these errors were encountered: