| |
Sign In
SELECT TOP 10 [t1].[Name], [t1].[Address], [t1].[Tel1], [t1].[Tel2], [t1].[Email], [t1].[DateCommenced], [t1].[Comments], [t1].[Active], [t1].[Fax]FROM ( SELECT ROW_NUMBER() OVER (ORDER BY [t0].[Name], [t0].[Address], [t0].[Tel1], [t0].[Tel2], [t0].[Email], [t0].[DateCommenced], [t0].[Comments], [t0].[Active], [t0].[Fax]) AS [ROW_NUMBER], [t0].[Name], [t0].[Address], [t0].[Tel1], [t0].[Tel2], [t0].[Email], [t0].[DateCommenced], [t0].[Comments], [t0].[Active], [t0].[Fax] FROM [dbo].[Table1] AS [t0] ) AS [t1]WHERE [t1].[ROW_NUMBER] > @p0-- @p0: Input Int32 (Size = 0; Prec = 0; Scale = 0) [50]-- Context: SqlProvider(Sql2005) Model: AttributedMetaModel Build: 3.5.20706.1
it's not immediately obvious why they use the subquery like this, but i'm sure they have been very thorough in optimising LINQ.
Remember Me