I came accross with this link http://www.dbtutorials.com/display/linq-to-sql-paging-cs.aspx
我使用了这个链接http://www.dbtutorials.com/display/linqto -sql-paging-cs.aspx
which has e.g. of efficient server side paging in LINQ but i want to do same thing with Entity Framework but with Complex type is it possible ?
例如,LINQ中有高效的服务器端分页,但是我想对实体框架做同样的事情,但是对于复杂类型,这可能吗?
1 个解决方案
#1
1
Yes you can still use Skip
and Take
with the LINQ to Entities provider, and these will be performed on the server. You should also look into PagedList which makes things even easier for you.
是的,您仍然可以使用Skip并将LINQ带到实体提供程序中,这些将在服务器上执行。您还应该查看PagedList,它会使您的工作更容易。
#1
1
Yes you can still use Skip
and Take
with the LINQ to Entities provider, and these will be performed on the server. You should also look into PagedList which makes things even easier for you.
是的,您仍然可以使用Skip并将LINQ带到实体提供程序中,这些将在服务器上执行。您还应该查看PagedList,它会使您的工作更容易。