Open GLuca74 opened 1 year ago
Note for triage: Method signature is:
private static void PopulateCollection<TCollection, TElement, TRelatedEntity>(...)
where TRelatedEntity : TElement
where TCollection : class, ICollection<TElement>
Generic types are:
TCollection: List<List<IQueryable<ICollection<Street>>>>
TElement: List<List<ICollection<Street>>>
TRelatedEntity: List<IQueryable<ICollection<Street>>>
Looks like the IQueryable
has not been appropriately replaced.
Hello,
having this model:
this query
ctx.Set<Continent>().Select(c => c.Nations.Select(n=> n.Cities.Select(c => c.Districts))).ToArray();
works, but if I add another stepctx.Set<Continent>().Select(c => c.Nations.Select(n=> n.Cities.Select(c => c.Districts.Select(d => d.Streets)))).ToArray();
fails with :Provider : Microsoft.EntityFrameworkCore.SqlServer 6.0.13
ConsoleApp1.zip