Skip to content
Advertisement

Select Min() and other columns and GroupBy by two columns in EF 6

Using the example below, (from the answer in this link here) how can I select/group with an extra column ? I have searched this site and others and tried some examples but couldn’t get it to work.

Advertisement

Answer

It sounds like what you want would be:

Then in the .Select()

This groups on distinct combinations of rate class and vehicle type.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement