Fetch Required Records From 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... :) 
 
Ebook Download
View all
Learn
View all