I have a problem with Group by in lambda expression, Lets say I have the following SQL query:
SELECT [name] FROM [db].[dbo].[table] GROUP BY [key]
I want to get the same result using lambda expression, I tried this :
IQueryable<table> query = context.table.GroupBy(s => s.key);
But I get "missing cast" error.
What I miss here?