I have this query
from d in db.v_Report_CompanySearches
orderby d.PersonName ascending
where d.PersonName.ToLower().Contains(mPersonName)
group d.PersonName by d.PersonName into d
select ((v_Report_CompanySearches)d)
but this line is breaking it
group d.PersonName by d.PersonName into d
I'm looking to extract only the column PersonName, and also only the unique values and sorted. But this is crashing. Does anyone know what's wrong?
Thanks