我提出了以下问题:
var list = from book in books
where book.price > 50
select book;
list = list.Take(50);
我期望上述内容能够产生这样的结果:
SELECT top 50 id, title, price, author
FROM Books
WHERE price > 50
但它产生了:
SELECT
[Limit1].[C1] as [C1]
[Limit1].[id] as [Id],
[Limit1].[title] as [title],
[Limit1].[price] as [price],
[Limit1].[author]
FROM (SELECT TOP (50)
[Extent1].[id] as as [Id],
[Extent1].[title] as [title],
[Extent1].[price] as [price],
[Extent1].[author] as [author]
FROM Books as [Extent1]
WHERE [Extent1].[price] > 50
) AS [Limit1]
为什么上述林木矿会产生一个子阶,C1从哪里产生?