TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Fetch Required Records From Entity Framework
Rahul Kumar Saxena
Feb 24, 2015
2.2
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
How we can fetch only those number of records which we want to show on page in Entity Framework?
Use Below Query to achieve this:
DBContext
obj = new
DBContext
();
int
pageSize = 10;
int
PageIndex = 2;
List
lstEmployee = obj.Employee.Take(pageSize)
.Skip(PageIndex * pageSize)
.ToList();
Now check this list lstEmployee and enjoy Programming... :)
Fetch Required Records From Entity Framework
Next Recommended Reading
Entity Framework Error on SaveChanges()