Imbibe TechInnovate. Empower
We're Hiring! [email protected] (+91) 184-4035666
  • HOME
  • ABOUT
    • About Us
    • Portfolio
    • Corporate Profile
  • SERVICES
    • Enterprise Applications
    • Big Data & Cloud Computing
    • Research Consulting
    • E-Commerce
    • Brand Identity
    • Design
      • Catalog theme for ExtJs 6
    • Content Marketing
  • PRODUCTS
    • ItTalk
    • ItLearn
    • ItHealth
    • ItWeb
    • SQL Manager
    • Mart
  • BLOG
  • CONTACT US
Select Page

A generic method to add sort expressions to an IQueryable instance (LINQ/Entity Framework)

by Rahul Singla | Mar 12, 2017 | .Net, Coding, Entity Framework, LINQ, Tech | 4 comments

A few days ago, I was working on some Entity Framework stuff where I encountered the following logic for applying sort expressions to the EF query: var query = this.context.users.AsQueryable(); if (sort == "username") { if (sortDir == "ASC") { query = query.OrderBy(u...

Copyright © 2018 Imbibe Technologies Private Limited . All rights reserved

Privacy policy Terms of use Purchase Terms Refund policy