Hi I have a Linq Like this
from item in db.SportsActivities where item.GeoSportsId == SportsId select item.SportsTeam)
.OrderBy(it => it.Description)
.ToList()
.ConvertAll<SportsTeam>(ConvertFromDAL)
This query is quite inefficient, I'm looking for a way to optimize it with CompiledQuery
.
I tried to use this by compiled query though I could not find a way to figure how to arrange and use this with CompiledQuery
. I'm quite new with LINQ.