sql server - Implement Pagination with LINQ (C#)? -


I am a newbie with database applications

I paginate with low memory footprint I want to apply This application is connected to MS SQL Server 2008 R2 DB.

I have thousands of records and this application can check the records with the given criteria.

The application will be returned using the LINQ-SQL for the query and the entire data will be returned. If the query returns too much, then this process can be removed from memory so I would like to apply it as pages

I came across some stored procedures on the Web that can page data.

I'm not sure that marking on the standard page can help me fulfill the following requirements

  • Reduce the memory footprint, only to give the necessary results on demand is.
  • Maintain the query status. The same record can be updated, while the user sees the data in view. Therefore, regardless of the current status table of the state, the number of results and the number should be maintained in relation to it.
  • If LINQ is used to apply the pagination on the page, then will this process complete the result?

    There is no problem using the pagination link; > Move () and Skip ()

      var page = list.Skip ((page no -1) * pages). Move (Page Size)    

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -