MCQs > Database Management > ADO.NET > Read the following statements: DataRow oDetailsRow = oDS.Table[''OrderDetails''].NewRow(); oDetailsRow[''ProductId''] = 1; oDetailsRow[''ProductName''] = ''Product 1''; What is wrong with this code?

ADO.NET MCQs

Read the following statements:
DataRow oDetailsRow = oDS.Table["OrderDetails"].NewRow();
oDetailsRow["ProductId"] = 1;
oDetailsRow["ProductName"] = "Product 1";
What is wrong with this code?

Answer

Correct Answer: Table is not a collection of DataSet

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