var testQuery = testQuery1.Take(10).GroupBy(x=> x.bus.Adcode);
var grouped = await testQuery.Where(x => x.Key == "510100").ToListAsync();
```
System.ArgumentException: Argument type 'Microsoft.EntityFrameworkCore.Query.EntityQueryModelVisitor+TransparentIdentifier
2[StormBorn.Data.Models.BaseFerryBus,System.Collections.Generic.IAsyncEnumerable1[StormBorn.Data.Models.BaseDriverSchedulingDetail]]' does not match the corresponding member type 'StormBorn.Data.Models.BaseDriverSchedulingDetail'
Parameter name: arguments[1]
@maumar If this turns out to be a MySQL issue, then please push to them.
It seems like a EF issue,because there is no sql excuted.
Works in current bits and produces (roughly) the following sql:
SELECT TOP(@__p_0) [bus0].[Id], [bus0].[Adcode], [detail0].[Id], [detail0].[BusId], [distance0].[Id], [distance0].[BusId]
FROM [BaseFerryBuses] AS [bus0]
LEFT JOIN [BaseDriverSchedulingDetails] AS [detail0] ON [bus0].[Id] = [detail0].[BusId]
LEFT JOIN [BaseGeoDistances] AS [distance0] ON [bus0].[Id] = [distance0].[BusId]
ORDER BY [bus0].[Adcode]
Note that everything after GroupBy is performed on the client
@maumar does that mean that it works with MySQL or that we believe it is a MySQL only issue?
@divega it was a compiler problem (regardless of the provider).
Most helpful comment
@divega it was a compiler problem (regardless of the provider).