|
Class CMultiBulkRecord<T> Overview template <class TBulkRecord> CMultiBulkRecord<T> encapsulates the functionality of interface IMultipleResults. To open a CMultiBulkRecord<T> object, the used OLEDB provider must support TMultipleResults object and expose interface IMultipleResults. This template is able to process not only a simple batch statement but also a parameterized statement or stored procedure batched with other statements as shown in the example MultiRecords. The advantage of use of this template is to reduce data traffic over network because all the associated rowsets data are fetched to a client with a single stream. If all the resultant rowsets are readonly, you can use the following declarations to reduce the code size. CMultiBulkRecord<CBulkRecord<CRBase> > MyLightNoParamMultiRecords; or CMultiBulkRecord<CBulkRecordParam<CRBaseEx> > MyLightParamMultiRecords; |