What are two possible code segments that you can use to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
A. DataSet ds = new DataSet();adapter.Fill(ds, 0, 10, “Product”)
B. DataSet ds = new DataSet();DataTable dt = ds.Tables.Add(“Product”);adapter.Fill(0, 10, dt);
C. DataSet ds = new DataSet();DataTable dt = ds.Tables.Add(“Product”); dt.ExtendedProperties[“RowCount”] = 10; dt.ExtendedProperties[“RowIndex”] = 0; adapter.Fill(dt);
D. DataSet ds = new DataSet(); ds.ExtendedProperties[“RowCount”] = 10; ds.ExtendedProperties[“RowIndex”] = 0; adapter.Fill(ds);
Answer:A
What are two possible code segments that you can use to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
A. DataSet ds = new DataSet();adapter.Fill(ds, 0, 10, “Product”) B. DataSet ds = new DataSet();DataTable dt = ds.Tables.Add(“Product”);adapter.Fill(0, 10, dt); C. DataSet ds = new DataSet();DataTable dt = ds.Tables.Add(“Product”); dt.ExtendedProperties[“RowCount”] = 10; dt.ExtendedProperties[“RowIndex”] = 0; adapter.Fill(dt); D. DataSet ds = new DataSet(); ds.ExtendedProperties[“RowCount”] = 10; ds.ExtendedProperties[“RowIndex”] = 0; adapter.Fill(ds);