I am having trouble translating following query to EF:
SELECT DISTINCT
[CompanyId]
,[CompanyNumber]
,[ReturnsLastMadeUpDate]
FROM [CHX].[dbo].[CompanyDetailsDailyDump]
WHERE [InsertDate] BETWEEN '2012-12-19' and '2013-01-20'
ORDER BY [ReturnsLastMadeUpDate] DESC
The main issue is with the Distinct(). How can I select above three specific columns to be compared for distinct rather than all the columns. Regards