I want to combine the name of the list in the list. Error Message : LINQ to Entities does not recognize the method 'System.String Join(System.String, System.String[])' method, and this method cannot be translated into a store expression.
dgv.DataSource = this.oFacade.Context.Books
.Include(c => c.Categories)
.Select(c => new dtoObjectDGV
{
ID = c.ID,
Name = c.Name,
CategoryInfo= String.Join(", ", c.Categories.Select(d => d.Name).ToArray())
}).ToList();
result : Name = C# Book CategoryInfo = X Category, Y Category,... bla bla