Paging in Entity Framework -


In the unit framework, using LINQ units, database paging is usually done in the following manner:

  int total vacancies = entity context Context UsSat.Count; Var list = EntityContext.Context.UserSet. Skip (initial record number). Move (Page Size). Ollist ();  

This is the result in the two database call.

Please tell how to reduce it in a database call.

Thank you.

What's wrong with two calls? These are small and quick questions that the database is designed to support many small questions.

Developing a complex solution to do a query for paging is not letting you pay more.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -