Answers

Question and Answer:

  Home  MCSD.NET - 70-315 Exam

⟩ You are creating an ASP.NET application to track XYZ sales orders. The application uses anADO.NET DataSet object that contains two DataTable objects. One table is named Orders, andthe other table is named OrderDetails. The application displays data from the Orders table in a listbox. You want the order details for an order to be displayed in a grid when a user selects theorder in the list box. You want to modify these objects to enable your code to find all the orderdetails for the selected order.What should you do?A. Add a DataRelation object to the Relations collection of the DataSet object.B. Use the DataSet.Merge method to connect the Orders table and the OrderDetails table to eachother.C. Add a ForeignKeyConstraint to the OrderDetails table.D. Add a keyref constraint to the DataSet schema.

A. Add a DataRelation object to the Relations collection of the DataSet object.

 134 views

More Questions for you: