I want to union records from 2 tables, sort them, and read TOP rows from result set.
T1
--------
Id, Timestamp, Text1
T2
--------
Id, Timestamp, Text2
With SQL it can be done this way:
SELECT TOP 10 * FROM
(
SELECT
[Timestamp],
[Text1]
FROM
T1
UNION
SELECT
[Timestamp],
[Text2]
FROM
T2
) as x
ORDER BY [Timestamp]
Q: How can I do that task using EF linq?