嗨,我在我的应用程序中使用实体框架,我想尽可能快地获取数据,做什么,哪个是更好的字典或列表或可查询或不可数 [英] Hi I'm Using Entity Framework In My Application, I Want Fetch The Data As Fast As Possible, What To Do, Which Is Better Dictionary or List or Iqueryable or Ienumerable

查看:65
本文介绍了嗨,我在我的应用程序中使用实体框架,我想尽可能快地获取数据,做什么,哪个是更好的字典或列表或可查询或不可数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我在我的应用程序中使用实体框架,我想尽可能快地获取数据,做什么,哪个更好的字典或列表或Iqueryable或Ienumerable

Hi I'm Using Entity Framework In My Application, I Want Fetch The Data As Fast As Possible, What To Do, Which Is Better Dictionary or List or Iqueryable or Ienumerable

推荐答案

1.任何应用程序的速度都不依赖于使用的列表/字典类。



2.提高任何使用的应用程序的速度大量数据,最重要的方面是使用分页。我在ASP.NET应用程序的上下文中有一篇关于这个主题的文章,我在数据库级别提供了一个可以调整和扩展的SP的分页。 高级ASPX GridView分页和数据实体 [ ^ ]



3.在Web应用程序的上下文中,其他重要方面是使用AJAX并避免回发整个页面(包括存储在页面视图状态中的数据集)。有很多关于这个主题的文章,包括我的下一篇文章: MVC Basic Site:Step 4 - 使用AJAX,JSON,jQuery,LINQ和序列化的MVC 4.0中的jqGrid集成 [ ^ ]
1.The speed of any application does not depend on the used list/dictionary class.

2.To improve the speed of any application that use large set of data, the most important aspect is to use pagination. I have an article about this subject in the context of an ASP.NET application, and I provide there the pagination at the database level by providing a SP that could be adapted and extended. Advanced ASPX GridView Pagination and Data Entities[^]

3. In the context of web application other important aspect is to use AJAX and to avoid to postback the entire page (including the data set stored in the page view state). There a lot of article about this subject including my next article: MVC Basic Site: Step 4 – jqGrid Integration in MVC 4.0 using AJAX, JSON, jQuery, LINQ, and Serialization[^]


这篇关于嗨,我在我的应用程序中使用实体框架,我想尽可能快地获取数据,做什么,哪个是更好的字典或列表或可查询或不可数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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