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
While EF Core 3 Preview 7 (opposed to EF Core 2.2) does track all related entities (context.ChangeTracker.Entries().Count() returns the correct number), the Components collection remains empty!
Using ToList() instead of newing up manually a collection works in turn:
When we invoke new List<>(...) the passed in parameter is empty list, which we populate afterwards. Hence the created list (custom or not) remains empty.
This issue is basically a follow up of #16636.
While EF Core 3 Preview 7 (opposed to EF Core 2.2) does track all related entities (context.ChangeTracker.Entries().Count() returns the correct number), the
Components
collection remains empty!Using ToList() instead of newing up manually a collection works in turn:
But I need to use
MyCustomList<T>
instead ofList<T>
.Further technical details
EF Core version: 3.0.0-preview7.19362.6
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
Operating system: Windows 10 1903
IDE: Visual Studio 2019 16.2.0
The text was updated successfully, but these errors were encountered: