In regular SQL i could do something like
SELECT * From T GROUP BY DATEPART(wk, T.Date)
How can i do that in Linq to SQL ?
The follo
You can use the SqlFunctions.DatePart method from the System.Data.Entity.SqlServer namespace.
SqlFunctions.DatePart
// Return the week number From F In DB.T Group R By SqlFunctions.DatePart("week", F.Date)