How many constraints does each table have now?

You have a DataSet object named ordersDataSet. This object contains two

DataTable objects named Orders and OrderDetails. Both Orders and OrderDetails contain a column named OrderID.

You create a DataRelation object named orderRelation between Orders and OrderDetails on OrderID. Orders is the parent table. OrderDetails is the child table.

You add orderRelation to the ordersDataSet relation collection by using the following line of code:
ordersDataSet.Relations.Add(orderRelation);

You verify that prior to adding orderRelation, there were no constraints on either table. You then run the line of code.

How many constraints does each table have now?

You have a DataSet object named ordersDataSet. This object contains two

DataTable objects named Orders and OrderDetails. Both Orders and OrderDetails contain a column named OrderID.

You create a DataRelation object named orderRelation between Orders and OrderDetails on OrderID. Orders is the parent table. OrderDetails is the child table.

You add orderRelation to the ordersDataSet relation collection by using the following line of code:
ordersDataSet.Relations.Add(orderRelation);

You verify that prior to adding orderRelation, there were no constraints on either table. You then run the line of code.

How many constraints does each table have now?

A.
one on Orders; none on OrderDetails

B.
none on Orders; one on OrderDetails

C.
none on Orders; none on OrderDetails

D.
one on Orders; one on OrderDetails



Leave a Reply 0

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