Click here to Skip to main content
15,892,059 members
Articles / Programming Languages / C#

Dynamically Build LINQ Expressions

Rate me:
Please Sign up or sign in to vote.
4.96/5 (24 votes)
3 Jun 2020CPOL11 min read 23.2K   44  
A primer on using LINQ to wring strongly typed queries directly in code
LINQ stands for Language Integrated Query. It provides a consistent strongly typed mechanism for querying data across various sources. LINQ is based on expressions. This article explores LINQ and underlying expressions by building a custom expression tree in a reference application.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Program Manager Microsoft
United States United States
Note: articles posted here are independently written and do not represent endorsements nor reflect the views of my employer.

I am a Program Manager for .NET Data at Microsoft. I have been building enterprise software with a focus on line of business web applications for more than two decades. I'm the author of several (now historical) technical books including Designing Silverlight Business Applications and Programming the Windows Runtime by Example. I use the Silverlight book everyday! It props up my monitor to the correct ergonomic height. I have delivered hundreds of technical presentations in dozens of countries around the world and love mentoring other developers. I am co-host of the Microsoft Channel 9 "On .NET" show. In my free time, I maintain a 95% plant-based diet, exercise regularly, hike in the Cascades and thrash Beat Saber levels.

I was diagnosed with young onset Parkinson's Disease in February of 2020. I maintain a blog about my personal journey with the disease at https://strengthwithparkinsons.com/.


Comments and Discussions