Sending Data to Requesting Components
After your data component has obtained the requested information, it will need to send the information back to the business logic tier. If you need to send back an individual value, such as an identity value from a newly inserted record, you can pass that as the return value for the function. If you are dealing with a result set consisting of many rows or even a single row of data with multiple columns, you will handle this differently—either with a different return type or parameters that are passed by reference. The two recommended possibilities for this are a disconnected recordset or an XML string. Figure 11.3 displays what you are attempting to do in this section. The data has to go from the data component ...
Get Sams Teach Yourself Microsoft® Windows® DNA Programming in 21 Days now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.