Quantcast
Channel: SCN : Discussion List - SAP Adaptive Server Enterprise (SAP ASE) for Custom Applications
Viewing all articles
Browse latest Browse all 685

C# BulkCopy column mappings don't work with IDataReader

$
0
0

We're using C# ADO 15.7 SDK SP122

 

and we've found the C# BulkCopy column mappings don't work with IDataReader.

 

If we set up the mappings (AseBulkCopyMapping) and use WriteToServer(DataTable) it all works correctly.

If we use WriteToServer(IDataReader) then the mappings are ignored.

 

Comparing the code AseBulkCopyBusinessBulk(IDataReader reader, AseBulkCopy bulkCopy, int batchSize)

to AseBulkCopyBusinessBulk(DataTable table, DataRowState rowState, AseBulkCopy bulkCopy, int batchSize)

 

there's code to handle the mappings for DataTable.

 

Am I reading this correctly ? Is this fixed in a later version ?

 

Thanks


Viewing all articles
Browse latest Browse all 685


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>