Monday, 23 April 2012

Linq Query


Here is Simple query in Linq to get 21-30 Record from Table,

TestDBAjayEntities  is entity Model and
Detailmasters is Table

 using (LinqEF.TestDBAjayEntities Test = new LinqEF.TestDBAjayEntities())
            {
                var List = (from Detail in Test.Detailmasters
                            select new
                            {
                                Detail.Company,
                                Detail.Designation,
                                Detail.Name
                            }).Skip(20).Take(10);
            };

Enjoy Life as much as you can.....

No comments:

Post a comment