SQL CE 和 orderby linq 子句的问题
我将 linq 与 SQL CE 结合使用,但对于如下所示的简单查询:
var points=from i in this.DomainBoundaryPoints orderby i.Index select i;
我收到此错误:
Could not find an implementation of the query pattern for source type 'System.Data.Linq.EntitySet<DAL.DomainBoundaryPoint>'. 'OrderBy' not found. Are you missing a reference to 'System.Core.dll' or a using directive for 'System.Linq'?
Does SQL CE support 'order by' TSQL Clause?问题出在哪里?
I am using linq with SQL CE, but for a simple query like this:
var points=from i in this.DomainBoundaryPoints orderby i.Index select i;
I get this error:
Could not find an implementation of the query pattern for source type 'System.Data.Linq.EntitySet<DAL.DomainBoundaryPoint>'. 'OrderBy' not found. Are you missing a reference to 'System.Core.dll' or a using directive for 'System.Linq'?
Does SQL CE support 'order by' TSQL clause? Where is the problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当然,SQL CE 支持
orderby
...尝试执行错误消息告诉您的操作...
System.Core
的引用(如果不存在)System.Linq
Of course SQL CE supports
orderby
...Try to do what the error message tells you...
System.Core
if it's not thereSystem.Linq