In ADO.NET, what is the purpose of a DataRelation?
- Deletes a record from the database
- Establishes a relationship between two tables in a DataSet
- Provides a connection string to the database
- Retrieves data from a stored procedure
A DataRelation in ADO.NET is used to establish a relationship between two tables in a DataSet. This allows for navigating between related rows and enforcing referential integrity between them. It does not provide a connection string, retrieve data from a stored procedure, or perform deletions.
Loading...
Related Quiz
- What is deferred execution in the context of LINQ to DataSet?
- Optimistic concurrency in LINQ to SQL involves comparing a record's _______ value before updating it.
- Code-First development allows you to define the data model using _________ classes.
- What is the purpose of the DataMember property in data binding?
- What are some best practices for optimizing database operations in Entity Framework?