I have two tables in my database
Table:Documents
Id (int), DocName (nvarchar)
----------------------------
Table:AccessLogs
Id (int), DocId (int), AccessTime (DateTime)
----------------------------
How can I write a LINQ query that returns the last 10 accessed documents and fills in the access time from the accesslogs table? I have modified the Documents class in C# to have an AccessTime (DateTime) property. The results from the LINQ query should be of type List.
(My solution runs 10 queries, there must be a more efficient method)