Local and Interpreted Queries in C# 11 | Advance LINQ Course | Lecture 4



Local and Interpreted Queries in C# 11 | Advance LINQ Course | Lecture 4

Local and Interpreted Queries in C# 11 | Advance LINQ Course | Lecture 4

LINQ or Language Integrated Query, is a set of language and runtime features for writing structured type-safe queries over local object collections and remote data sources. LINQ enables you to query any collection implementing IEnumerable, whether an array, list, or XML Document Object Model (DOM), as well as remote data sources, such as tables in an SQL Server database. LINQ offers the benefits of both compile-time type checking and dynamic query composition. This chapter describes the LINQ architecture and the fundamentals of writing queries. All core types are defined in the System.Linq and System.Linq.Expressions namespaces.
Fluent Syntax:
Fluent syntax is the most flexible and fundamental. In this section, we describe how to chain query operators to form more complex queries—and show why extension methods are important to this process. We also describe how to formulate lambda expressions for a query operator and introduce several new query operators
Query Expressions:
C# provides a syntactic shortcut for writing LINQ queries, called query expressions. Contrary to popular belief, a query expression is not a means of embedding SQL into C#. In fact, the design of query expressions was inspired primarily by list comprehensions from functional programming languages such as LISP and Haskell, although SQL had a cosmetic influence.

Comments are closed.