What is the primary purpose of a DataTable in ADO.NET?
- Represents a connection to the database
- Represents a query to be executed on the database
- Represents a single table of in-memory data
- Stores a collection of records from a database
A DataTable in ADO.NET represents an in-memory representation of a single table from a database. It allows manipulation of data locally without directly interacting with the database. This can be useful for caching data, performing calculations, or preparing data for display.
Loading...
Related Quiz
- In ADO.NET, what does the UPDATE command allow you to do?
- Using a database-specific data provider, such as SqlClient, can result in ___________ performance compared to generic providers.
- The "Find" method in Entity Framework is used to retrieve an entity by its ___________.
- What is the primary purpose of modifying data in datasets?
- What does EF stand for in the context of ADO.NET Entity Framework?