-
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
Migrating from .NET 3.2 to .NET 5.0 - Using DefaultIfEmpty() in Query Returns System.ArgumentNullException: 'Value cannot be null. (Parameter 'other')' #23658
Comments
Fixed in 0b31650 |
@smitpatel excellent if this is fixed....can you provide a little bit of insight on what package version will include this fix? I lost the thread trying to figure out if the above fix is going to make it into 5.0.2 or it is a 6.0.0 release. Thanks! |
6.0.0 release. |
|
from hierarchy in applicationDb.Hierarchies
where hierarchy.Id != applicationDb.Organizations.Where(x => x.Id == organizationId).Select(e => e.HierarchyId).FirstOrDefault()
select hierarchy).ToList(); Assumptions made
|
@smitpatel Thanks for the explanation and taking the time to look at it. +1 vote for 5.0.3, trying to take advantages of the advancements Blazor made in 5.0.0 when I came across this bug. |
@ajcvickers Is the current timetable for 6.0.0 release November 2021 or is ef core going to move at a different cadence? |
@benhysell We discussed this issue in triage and decided that for now it doesn't meet the bar for servicing in a patch release. Specifically, the issue has a reasonable workaround, is in the in-memory database provider only, and is so far reported by a single customer. EF Core follows the .NET release cadence. The next release will be 6.0 in November 2021. |
Appreciate everyone taking the time to look at this and the responses. |
@benhysell Thanks for clarifying; we will discuss again. |
Repo: https://github.com/benhysell/V.EfCoreIssue
Two projects in the repo, one using .NET Core 3.2 and one using .NET 5.0.
Two entities defined in the system,
Organization
andHierarchy
. Note these are contrived and pulled from a much larger project, but boiled down to:Each one has a
Name
field and aGuid
as theId
.Organization
has a singleHierarchy
Hierarchies
that match a givenOrganization
in .NET 5.0 fails but runs without issue in .NET 3.2Returns
System.ArgumentNullException: 'Value cannot be null. (Parameter 'other')'
Stack traces
Include provider and version information
EF Core version: 5.0.1
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: .NET 5.0
Operating system: Windows 10
IDE: Visual Studio 2019 16.8.3
The text was updated successfully, but these errors were encountered: