">
MCQs > Database Management > ADO.NET > You have two parent and child data tables named 'DTOrder' and 'DTOrderDetail' respectively. Both are stored in a data set named 'DS.' How will you make a relation 'DTOrder2DTOrderDetail' between the two, using 'OrderId' as primary key?

ADO.NET MCQs

You have two parent and child data tables named "DTOrder" and "DTOrderDetail" respectively. Both are stored in a data set named "DS." How will you make a relation "DTOrder2DTOrderDetail" between the two, using "OrderId" as primary key?

Answer

Correct Answer: DS.Relations.Add(DS.Tables["DTOrder"].Columns["OrderId"], DS.Tables["DTOrderDetail"].Columns["OrderId"]), 3.DS.Relation.Add("DTOrder2DTOrderDetail",

Explanation:

Note: This Question is unanswered, help us to find answer for this one

ADO.NET Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

More ADO.NET MCQ Questions

search

ADO.NET Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it