-
Notifications
You must be signed in to change notification settings - Fork 6
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
Entity Framework Core 8 (.NET 8) Support #39
Comments
Hey @SerhiyBalan. Yes, as soon as I have a chance. In the meantime you can use v7. Are you experiencing any issues with v7.4? |
@yv989c thank you for the quick reply At first glance, it works well - no crashes, seems to return legit results. I haven't run the tests you have. So I can't say for sure that everything works 100% I just wanted to receive a sign of approval that it is EF Core 8 comparable. Thanks :) |
Hi @yv989c ! I've switched to .Net 8 / EF Core 8 and I get this kind of error with v7.4 of the package:
So for me, v7.4 is not EF Core 8 compatible (could be a bad usage on my side though). To illustrate, here's the syntax of the method that throws this error.
|
Thanks for reporting this, @mboud. I'll spend some time on it this weekend. |
Hey @mboud, I can reproduce this bug under EF In the meantime, you can workaround the issue by refactoring your query like this: public IReadOnlyCollection<IMainAddress> FindFromAccountIds(ISet<Guid> accountIds)
{
return this._dbContext.Accounts
.Join(
this._dbContext.AsQueryableValues(accountIds),
account => account.Id,
accountId => accountId,
(account, accountId) => account.MainAddressId
)
.Join(
this._dbContext.MainAddresses,
mainAddressId => mainAddressId,
mainAddress => mainAddress.Id,
(mainAddress, mainAddressId) => mainAddress
)
.ToList();
} @SerhiyBalan, I started working on a version of QV for EF Once I have a solution for the unsupported case above –aka bug– I'll release the specific version of QV for EF |
Hi @yv989c ! I was using v6.x + EF Core 6 before and jumped to v7.4 + EF Core 8 hence my believing it was related to EF Core 8. Thanks for sorting this out so fast. I can still wait a bit before switching to EF Core 8 so I'll wait for future updates. Again, thanks a lot ! |
This has been fixed in #41. |
Do you plan to release a version with native support of Entity Framework Core 8 ?
Thank you very much
The text was updated successfully, but these errors were encountered: