Which namespace is commonly used for LINQ in C#?
- System.Collections
- System.Data
- System.Linq
- System.Xml
The System.Linq namespace is commonly used for LINQ in C#. It contains classes and interfaces that support LINQ query operations for various data sources such as collections, arrays, XML, and databases.
Loading...
Related Quiz
- Scenario: You are developing an application that needs to interact with a SQL Server database. Which component of Entity Framework would you use to define the data model and work with the database?
- What does EF stand for in the context of ADO.NET Entity Framework?
- When working with hierarchical data, what are the primary benefits of using DataRelations?
- Scenario: You are tasked with developing a web application that collects user input and inserts it into a SQL Server database. How can you prevent SQL injection in this scenario?
- The ExecuteReader method returns a ___________ object that can be used to read the result set.