SqlException because Subquery returned more than 1 value
问题 I have the following LINQ query that I am using to construct a structure to stuff into a JavaScript grid library which is irrelevant for this example, but I figured I would still explain that. var output = myObjects.Select( p => new RowModel { ID = p.LeadUID, Cells = new CellCollection(fields, p.myDataDatas.Where(q => q.myField.ParentUID == null).Select( q => new CellModel { Value = q.Value, Name = q.myField.Description, Display = q.myField.Description }).ToList() , new CellModel { Name =