I'm trying to do a groupby distinct, then build a csv string:
[FROM] is a one-to-many join:
var allCustomerRoles = (from cr in Customers
join r in CustomerRoles
on cr.Role_ID equals r.Role_ID
select new { cr.Customer_No_, r.Role_ID });
So the question is, can you please show me how to write the LINQ query to arrive at the [TO] structure, where Customer_No_ is distinct and it's Role_ID values are concatenated into a CSV string.