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
Post a Comment