I'm struggling to translate the following SQL query into LINQ.
The outcome column is in type (varchar
) in the database and I want to cast that into float
/double
with LINQ.
SELECT TOP 10 CAST(Outcome AS float) AS Max_Outcomes
FROM GameState
where GameId = 1000
ORDER BY Max_Outcomes DESC
Much appreciated!