Code is the best way to express.
IQueryable<Entity> Sample = dbContext.Entity.Where(condition);
var result = from s in Sample
select new NewList
{
value = s.ChildrenTable.Select(child => child.license)
.Aggregate("", (current => next) => current + "; " + next),
}
And the error (Maybe you already known):
LINQ to Entities does not recognize the method 'System.String
Aggregate[String,String](System.Collections.Generic.IEnumerable`1[System.String], System.String,
System.Func`3[System.String,System.String,System.String])' method,
and this method cannot be translated into a store expression.
So please help me any solution for this case!