You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET.
The application has a typed DataSet named DSOrders. The DSOrders DataSet has two DataTables as
shown in the following sequence:
1. Orders
2. Customers
You write the following code segment.
DSOrder ds = new DSOrders();
IDataReader rd;
You need to expose the two DataTables as a DataReader stream. You also need to ensure that the Customers DataTable is the first DataTable in the stream.
Which Code segment should you add?
A.
rd = ds.CreateDataReader(ds.Customers);
B.
rd = ds.CreateDataReader(ds.Customers, ds.Orders);
C.
ds.DefaultViewManager.CreateDataView(ds.Customers);
rd = ds.CreateDataReader( );
D.
ds.Customers.Prefix = "0";
ds.Orders.Prefix = "1";
rd = ds.CreateDataReader( );