I tried to split a string in a linq query. I got an error says "Unrecognized expression node: ArrayIndex". Does anyone know how to achive this? My code sample is:
List<Task> Result= (from t in TaskDB.Tasks
select new Task
{
Description = t.Description.Split('-')[0].ToString(),
Id = ts.id,
}).ToList();