当我执行“Linq2Sql”问询时,就如
db.Items.Single(it => it.Id == 1)
有些人坚持说,产生的锡克尔就像这样的。
select TOP (2) [t0].Id, [t0].Name
from [dbo].[SomeTable] as [t0]
where [t0].Id = @p0
but what I get from Sql Server Profiler (and Linqpad s sql window, and VS IntelliTrace window) shows that the sql does not contains any TOP, just plain
select [t0].Id, [t0].Name
from [dbo].[SomeTable] as [t0]
where [t0].Id = @p0
林克版本是否是问题? I m 采用4.0网框架,并参照4版系统。 数据。