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
In my code I want to know for each user how many funds he has in each account. This can be implemented using the following selection: (user => user.Accounts.Select(account => account.Transfers.Sum(transfer => transfer.Amount)))
I have the following database structure:
In my code I want to know for each user how many funds he has in each account. This can be implemented using the following selection:
(user => user.Accounts.Select(account => account.Transfers.Sum(transfer => transfer.Amount)))
Steps to reproduce
This is my actual query:
But that code leads to the following exception being thrown:
This code should be translated and successfully executed in my opinion as it works with simple collections.
Further technical details
EF Core version: 3.1.3
Database provider: Microsoft.EntityFrameworkCore.Sqlite
Target framework: .NET Core 3.1
Operating system: Windows 10
IDE: Visual Studio 2019 Enterprise 16.5.1
The text was updated successfully, but these errors were encountered: