I'm trying to group my data by using multiple columns in that way :
var groupedCustomers = listToProcess.GroupBy(cn => cn.CUST_NAME).Select(g => g.ToList()).ToList();
Grouping like that, I'm satisfied of what I'm getting as I can loop through all my objects and getting all their properties. However, as I'm supposed to group my table data using two fields (cust_name and cust_address), here's what I'm trying to do :
var groupedCustomers = listToProcess.GroupBy(cn => cn.CUST_NAME, ca => ca.CUST_ADDRESS).Select(g => g.ToList()).ToList();
Processing like that is also working but for each object, I'm only getting the address property.
Is there any other method to do that?