Monday, June 25, 2012

Using order by in Linq query in .net


var objSelfJoin = from t1 in objLinq.tblEmps
                             join  t2 in objLinq.tblEmps on t1.EId equals t2.SupervisorId orderby t1.Age                             select new { t1.Full_Name,t1.Age,t1.Salary
};

No comments:

Post a Comment

Comments

Search

Custom Search
Protected by Copyscape Plagiarism Software