I have the linq query below
var dd = (from dt in d
select new
{
dt.id,
dt.date,
dt.customerid,
dt.customer,
dt.Description,
dt.defect,
dt.address,
products = string.Join(",", dt.products)
}).ToList();
string.Join didn't work, the error is
LINQ to Entities does not recognize the method '
System.String Format(System.String, System.Object, System.Object)'
I Googled a lot and couldn't find any other solution. What I want to do is, dt.Products is an array and I want to join it all together in a string. Is it possible in Linq to Entities?