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.

There is a newer version of this package available.
See the version list below for details.
Install-Package BenGribaudoLLC.IEnumerableHelpers.DataReaderAdapter -Version 1.0.2
dotnet add package BenGribaudoLLC.IEnumerableHelpers.DataReaderAdapter --version 1.0.2
paket add BenGribaudoLLC.IEnumerableHelpers.DataReaderAdapter --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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.3 686 8/31/2017
1.0.2 381 6/16/2017
1.0.1 325 6/16/2017
1.0.0 496 6/15/2017