实体框架和SQL Server 2012分页 [英] Entity Framework and SQL Server 2012 Paging

查看:130
本文介绍了实体框架和SQL Server 2012分页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SQL Server 2012引入了一种更有效的使用FETCH和OFFSET进行分页的机制,这可能会对使用大量分页的应用程序的性能产生重大影响。实体框架5是否支持?
所以如果我使用EF使用Take + Skip进行页面访问,那么如果EF定位到SQL Server 2012,LINQ查询将被转换为新的2012年TSQL?

SQL Server 2012 introduces a more efficient mechanism for paging using FETCH and OFFSET which could have a big impact on performance of apps which use a lot of paging. Does Entity Framework 5 support this? So if Im using EF to page using Take + Skip will the LINQ queries be translated into the new 2012 TSQL if EF is targeting SQL Server 2012?

推荐答案

EF 5不支持此功能 - 实际上我认为EF中没有提供SQL Server 2012功能。您可以在 Data UserVoice 将其在ADO.NET团队产品积压中移动。

EF 5 doesn't support this feature - actually I think none of SQL Serve 2012 features is available in EF. You can vote for this feature on Data UserVoice to move it up in ADO.NET team product backlog.

这篇关于实体框架和SQL Server 2012分页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆