It provides powerful query functions for C # and Visual Basic syntax. LINQ introduces a standard and easy-to-learn Data Query and update mode, which can be extended to support almost any type of data storage. Visual Studio contains the assembly of the LINQ provider. With these assembly, you can use LINQ for. NET Framework collections, SQL Server databases, ADO. NET datasets, and XML documents.
LINQ Query
( num numQuery){ Console.Write(, num);} |
evenNumQuery = num numbers (num % 2) == 0 num; evenNumCount = evenNumQuery.Count(); |
> numQuery2 = ( num numbers (num % 2) == 0 num).ToList(); |
- Supports the functions of LINQ.
cust customers cust.City == cust; (Customer customer customerQuery){ Console.WriteLine(customer.LastName + + customer.FirstName);} |
customerQuery2 = cust customers cust.City == cust;( customer customerQuery2){ Console.WriteLine(customer.LastName + + customer.FirstName);} |