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
{{ message }}
Repository navigation
ParseException when using composite key for grouping in GroupByMany #945
When using GroupByMany with a string-based selector that builds a composite key, System.Linq.Dynamic.Core throws “No property or field 'xxxxx' exists in type 'Object'”, while the strongly-typed lambda overload works.
Example to Reproduce
var data = new[] {
new { MachineId = 1, Machine = new { Id=1, Name="A"} },
new { MachineId = 1, Machine = new { Id=1, Name="A"} },
new { MachineId = 2, Machine = new { Id=2, Name="B"} }};
// This doesn't work
data.GroupByMany("new (MachineId, Machine.Name)", "Machine.Id");
// This works
data.GroupByMany(a => new { a.MachineId, a.Machine.Name }, a => new { a.Machine.Id });
Activity
StefH commentedon Sep 26, 2025
#946