LinqToDataTable (CopyToDataTable<T>, support nullable) NuGet Package

Implements CopyToDataTable<T> where the generic type T is not a DataRow.
Is idea to help create datasource for library like EPPlus

This code has been taken from http://msdn.microsoft.com/en-us/library/bb669096.aspx.
Together with: http://w3facility.org/question/how-to-convert-iqueryable-to-datatable/

This is an extension method, should be used like
using LINQtoDataTable;
....
{
System.Data.DataTable MyTable = MyProducts.Where(x=>x.Price>10).CopyToDataTable();
}.




Got any LinqToDataTable (CopyToDataTable<T>, support nullable) Question?





Info

Version: 1.0.3
Author(s): Microsoft/Daniel M. Porrey/Sergey Berezovskiy
Last Update: Tuesday, April 28, 2015
.NET Fiddle: Create the first Fiddle
NuGet Url: https://www.nuget.org/packages/LinqToDataTable


Install
Install-Package LinqToDataTable
dotnet add package LinqToDataTable
paket add LinqToDataTable
LinqToDataTable Download (Unzip the "nupkg" after downloading)





STATS

must-have-score

avg-downloads-per-day

2

days-since-last-release

3687