© Holger Schwichtenberg 2018
Holger SchwichtenbergModern Data Access with Entity Framework Core https://doi.org/10.1007/978-1-4842-3552-2_14

14. Dynamic LINQ Queries

Holger Schwichtenberg1 
(1)
Essen, Germany
 

One of the benefits of Language Integrated Query (LINQ) is that compilers can validate the instructions at design time. However, there are some real-world cases in which the executing command is not completely established at design time, for example, because the user selects from a number of drop-down filters on a screen. This chapter shows ways to make LINQ commands dynamic partially or fully in conjunction with Entity Framework Core.

Creating LINQ Queries Step-by-Step

LINQ queries are not executed until you execute a conversion operator (called ...

Get Modern Data Access with Entity Framework Core: Database Programming Techniques for .NET, .NET Core, UWP, and Xamarin with C# now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.