Join for free and connect with our local tech scene

Stay on top of the latest companies and upcoming events with our weekly newsletter, and be counted among the people building the future of your local tech community.

Pittsburgh, PA /

Create Dynamic Queries with Expression Trees in .NET (and .NET Core)

Microsoft Corporation 30 Isabella St # 202 , Pittsburgh, PA 15212 (map)


ProTech is sponsoring our November meeting. A long time .NET User Group Community support, ProTech offers training and consulting services from right here in Pittsburgh.


Using LINQ in your .NET code is a knee-jerk reaction these days. But how many of us really understand what's really happening under the hood? What if you wanted to provide your application the ability to search on any field but wanted your code to be dynamic. Expression Trees form the basis for LINQ, and also provide you the ability to create your own dynamic queries. They are also at the core of libraries like Entity Framework and third party tools like Moq. This session will provide an overview of Expression Trees in .NET, how to use them to construct dynamic queries, and

we'll also walk through a sample application that evolves from hard-coded queries to Expression-based dynamic queries.


David Hoerster, a former 6-time C# MVP, is a recovering corporate financial analyst and has been working with the Microsoft.NET Framework since the early 1.0 betas. He is the former president of the Pittsburgh .NET User’s Group (PGHDOTNET) and is also a regular speaker at Pittsburgh and regional user group and community conference events. David can be found rarely blogging at and tweets occasionally at



Sign in to comment.