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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *