You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET.
The application has the following typed DataSets:
A DataSet named DSCustomers with a DataTable named Customers
A DataSet named DSOrders with a DataTable named Orders
You write the following code segment.
DSCustomers dsCust = new DSCustomers();
DSOrders dsOrd = new DSOrders();
…
IDataReader rd;
You need to expose the Customers DataTable and the Orders DataTable by using a DataReader stream.
Which code segment should you add?
A.
rd = dsCust.CreateDataReader(dsOrd.Orders);
B.
rd = dsCust.CreateDataReader(dsCust.Customers, dsOrd.Orders);
C.
dsCust.Load(dsOrd.CreateDataReader(), LoadOption.Upsert, "Customers");
rd = dsCust.CreateDataReader();
D.
DataTable tbl = new DataTable();
tbl.Load(dsOrd.Orders.CreateDataReader());
tbl.Load(dsCust.Customers.CreateDataReader());
rd = tbl.CreateDataReader();