我有这个查询
var temp = from x in ActiveRecordLinq.AsQueryable<Circuits>()
where x.User_Created == false
orderby x.Description
select x;
从 NHibernate Profiler
查询持续时间
- 仅数据库:7 毫秒 -
总计:835毫秒
生成的查询:
SELECT this_.Circuit_ID as Circuit1_35_0_,
this_.[Description] as column2_35_0_,
this_.[User_Created] as column3_35_0_
FROM dbo.Circuit this_
WHERE this_.[User_Created] = 0 /* @p0 */
ORDER BY this_.[Description] asc
这似乎是一个非常简单的查询。它返回 6821 行。我使用它只是为了填充一个下拉列表。
提前致谢