是否需要以亚音速编译 linq 查询?
我想知道是否有必要编译亚音速实体的 linq 查询?
例如,我需要编译以下 linq 查询吗?
var comments = from a in All()
where a.ParentCommentId == ArticleCommentId
select a;
I'd like to know if it's necessary to compile linq queries to the subsonic entities?
For example would I'd need to compile the following linq query?
var comments = from a in All()
where a.ParentCommentId == ArticleCommentId
select a;
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
编译查询是一种可选的优化,可让您避免多次解析表达式树。它从来都不是必需的,但可能是满足您的性能要求所必需的。
Compiled queries are an optional optimization that allow you avoid parsing an expression tree multiple times. It's never required, but may be necessary to meet your performance requirements.