BenGribaudoLLC.IEnumerableHelpers.DataReaderAdapter 1.0.2

DataReaderAdapter

Adds AsDataReader() & AsDataReaderOfObjects() to IEnumerable<T>, enabling IEnumerable<T> to be accessed as an IDataReader. Useful for loading data from a List<T>, LINQ expression or CSV parser into a database using SqlBulkCopy.

Install-Package BenGribaudoLLC.IEnumerableHelpers.DataReaderAdapter -Version 1.0.2
dotnet add package BenGribaudoLLC.IEnumerableHelpers.DataReaderAdapter --version 1.0.2

Release Notes

.Net Standard 1.6's SqlBulkCopy.WriteToServer() does not work with IDataReader, limiting this package's usefulness on that platform. .Net Standard 2.0 should resolve this issue as it will add a SqlBulkCopy.WriteToServer overload that accepts IDataReader.

Version History

Version Downloads Last updated
1.0.2 (current version) 102 6/16/2017
1.0.1 73 6/16/2017
1.0.0 117 6/15/2017